fix:修改asset account的 重复点击不好使的问题

This commit is contained in:
zhangyu
2020-12-21 16:25:58 +08:00
parent def02495b0
commit 7e729dc98e
2 changed files with 1 additions and 2 deletions

View File

@@ -143,8 +143,8 @@
let editUser = JSON.parse(JSON.stringify(this.editUser))
editUser.roleIds = [editUser.roleIds]
if (this.editUser.userId) {
this.prevent_opt.save=false;
this.$put('sys/user/update',editUser).then(response => {
this.prevent_opt.save=false;
if (response.code === 200) {
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
this.esc(true);

View File

@@ -528,7 +528,6 @@
},
setAccountValidResult(result, protocol) {
this.accountValidResult = result;
this.prevent_opt.save=false;
let index = this.errorProtocol.indexOf(protocol);
if (result) {
index != -1 ? this.errorProtocol.splice(index, 1) : "";