This commit is contained in:
wenyann 2020-05-25 17:46:29 +08:00
parent 98f955a74e
commit 05bd3a1353
1 changed files with 2 additions and 9 deletions

View File

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