提交 45140eb3 authored 作者: taojinlong's avatar taojinlong

refactor: 调整顺序

上级 cd07cee1
......@@ -523,12 +523,13 @@ export default {
if (this.dsTypes[i].type === this.form.type) {
if(this.form.type !== 'api' && !init){
this.form.configuration.extraParams = this.dsTypes[i].extraParams
this.form.configuration.customDriver = ''
}
this.datasourceType = this.dsTypes[i]
if(this.datasourceType.isJdbc){
listDriverByType(this.datasourceType.type).then(res => {
this.driverList = res.data
this.driverList.push({id: 'default', name: 'Default', driverClass:'Default'})
this.driverList = [{id: 'default', name: 'Default', driverClass:'Default'}]
this.driverList = this.driverList.concat(res.data)
})
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论