提交 540d1f16 authored 作者: taojinlong's avatar taojinlong

refactor: 调整顺序

上级 71dc6414
...@@ -136,7 +136,8 @@ export default { ...@@ -136,7 +136,8 @@ export default {
maxIdleTime: 30, maxIdleTime: 30,
acquireIncrement: 5, acquireIncrement: 5,
idleConnectionTestPeriod: 5, idleConnectionTestPeriod: 5,
connectTimeout: 5 connectTimeout: 5,
customDriver: ''
}, },
apiConfiguration: [] apiConfiguration: []
}, },
...@@ -528,7 +529,8 @@ export default { ...@@ -528,7 +529,8 @@ export default {
this.datasourceType = this.dsTypes[i] this.datasourceType = this.dsTypes[i]
if(this.datasourceType.isJdbc){ if(this.datasourceType.isJdbc){
listDriverByType(this.datasourceType.type).then(res => { listDriverByType(this.datasourceType.type).then(res => {
this.driverList = [{id: 'default', name: 'Default', driverClass:'Default'}] this.driverList = []
this.driverList.push({id: 'default', name: 'Default', driverClass:'Default'})
this.driverList = this.driverList.concat(res.data) this.driverList = this.driverList.concat(res.data)
}) })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论