From 05bd3a135363156a0ee3f9735f690913d8551d1e Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Mon, 25 May 2020 17:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/system/SystemParameterSetting.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/settings/system/SystemParameterSetting.vue b/frontend/src/business/components/settings/system/SystemParameterSetting.vue index 066869440c..1350ad0dac 100644 --- a/frontend/src/business/components/settings/system/SystemParameterSetting.vue +++ b/frontend/src/business/components/settings/system/SystemParameterSetting.vue @@ -136,15 +136,8 @@ this.$refs[formInline].validate((valid) => { if (valid) { this.result = this.$post("/system/testConnection", param, response => { - let flag = response.success; - if (flag) { - this.$success(this.$t('commons.connection_successful')); - } else { - this.$error(this.$t('commons.connection_failed')); - } - }).catch(() => { - this.$info(this.$t('commons.connection_failed')); - }); + this.$success(this.$t('commons.connection_successful')); + }) } else { return false; }