From 45140eb362c69bcb29fa9f11b06a27226bd49817 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 23 May 2022 22:24:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/DsForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/datasource/DsForm.vue b/frontend/src/views/system/datasource/DsForm.vue index fd18a0d5a8..6b3dac9d93 100644 --- a/frontend/src/views/system/datasource/DsForm.vue +++ b/frontend/src/views/system/datasource/DsForm.vue @@ -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) }) } }