From 7faa88f2d332f1fb1df8534b7ef26ecbedbde1da Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 11 Oct 2021 17:09:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=90=E5=88=B6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E7=AB=AF=E5=8F=A3=E5=8F=B7?= 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, 4 insertions(+) diff --git a/frontend/src/views/system/datasource/form.vue b/frontend/src/views/system/datasource/form.vue index 0c37c67a0b..1c17f14c4c 100644 --- a/frontend/src/views/system/datasource/form.vue +++ b/frontend/src/views/system/datasource/form.vue @@ -278,6 +278,10 @@ export default { this.$message.error(this.$t('datasource.please_choose_schema')) return } + if (this.form.configuration.dataSourceType === 'jdbc' && this.form.configuration.port <= 0) { + this.$message.error(this.$t('datasource.port_no_less_then_0')) + return + } this.$refs.dsForm.validate(valid => { if (valid) { const data = JSON.parse(JSON.stringify(this.form))