diff --git a/nezha-fronted/src/components/common/rightBox/accountBox.vue b/nezha-fronted/src/components/common/rightBox/accountBox.vue index f50624bbb..ad663f740 100644 --- a/nezha-fronted/src/components/common/rightBox/accountBox.vue +++ b/nezha-fronted/src/components/common/rightBox/accountBox.vue @@ -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); diff --git a/nezha-fronted/src/components/common/rightBox/assetBox.vue b/nezha-fronted/src/components/common/rightBox/assetBox.vue index 71cd2dcc4..626d70253 100644 --- a/nezha-fronted/src/components/common/rightBox/assetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/assetBox.vue @@ -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) : "";