diff --git a/core/apps/AppAccount/AppAccount.vue b/core/apps/AppAccount/AppAccount.vue index 3d69dcbc..adf68ec7 100644 --- a/core/apps/AppAccount/AppAccount.vue +++ b/core/apps/AppAccount/AppAccount.vue @@ -134,7 +134,8 @@ export default { optionsParty: [], tableData: [], search: {name: ""}, - ids: [] + ids: [], + lock: false } }, methods: { @@ -205,7 +206,10 @@ export default { updateAccount() { this.$refs.updateAccountForm.validate(v => { if (v) { + if (this.lock) return this.$message.error("请勿多次提交!") + this.lock = true this.instance.post("/app/wxcp/wxuser/empower", this.dialogForm).then(res => { + this.lock = false if (res?.code == 0) { this.dialog = false; this.$message.success("修改成功") @@ -213,6 +217,8 @@ export default { } else { this.$message.error(res?.msg) } + }).catch(() => { + this.lock = false }) } })