refactor: 调整顺序

This commit is contained in:
taojinlong 2022-05-23 22:24:22 +08:00
parent cd07cee14a
commit 45140eb362

View File

@ -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)
})
}
}