From 1013f2b29c96aaa3c72597fe6d7825c01662feda Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 31 Dec 2021 17:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=88=86=E9=85=8D=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=98=B2=E6=8A=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/apps/AppAccount/AppAccount.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }) } })