From 3d75e9920c679407dd2a92c4005de62bffcabe8a Mon Sep 17 00:00:00 2001 From: taojinlong Date: Wed, 26 Jan 2022 10:37:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=A1=E9=AA=8C=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/form.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/datasource/form.vue b/frontend/src/views/system/datasource/form.vue index cd5b2c7524..634c66f17f 100644 --- a/frontend/src/views/system/datasource/form.vue +++ b/frontend/src/views/system/datasource/form.vue @@ -338,7 +338,7 @@ export default { this.$refs.dsForm.resetFields() }, save() { - if (!this.form.configuration.schema && (this.form.type === 'oracle' || this.form.type === 'sqlServer')) { + if (!this.form.configuration.schema && (this.form.type === 'oracle' || this.form.type === 'sqlServer' || this.form.type === 'pg' || this.form.type === 'redshift' || this.form.type === 'db2')) { this.$message.error(i18n.t('datasource.please_choose_schema')) return } @@ -378,11 +378,13 @@ export default { case 'oracle': case 'db2': if(configuration.host == this.form.configuration.host && configuration.dataBase == this.form.configuration.dataBase && configuration.port == this.form.configuration.port && configuration.schema == this.form.configuration.schema){ + repeatDsName = child.name repeat = true } break case 'es': if(configuration.url == this.form.configuration.url){ + repeatDsName = child.name repeat = true } break