This commit is contained in:
parent
98f955a74e
commit
05bd3a1353
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue