From e32e2a92cdaec8436dec46c3c3582d55722c599b Mon Sep 17 00:00:00 2001 From: mabo Date: Thu, 3 Jun 2021 18:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E7=AB=AF?= =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E9=A1=B5=E9=9D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/region/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/manager/src/views/region/index.vue b/manager/src/views/region/index.vue index 26fbe42e..7c7b5487 100644 --- a/manager/src/views/region/index.vue +++ b/manager/src/views/region/index.vue @@ -303,7 +303,7 @@ export default { content: "更新后店铺以及用户地区绑定数据将全部错乱", onOk: () => { let timer; - let numer; + let number; this.asyncLoading = true @@ -319,7 +319,8 @@ export default { click: () => { this.$Message.destroy(); this.asyncLoading = false - clearInterval(timer, numer); + clearInterval(number); + clearTimeout(timer) }, }, }, @@ -329,11 +330,12 @@ export default { }, }); - numer = setInterval(() => { + number = setInterval(() => { this.num--; }, 1000); timer = setTimeout(() => { + clearInterval(number) asyncRegion().then((res) => { this.asyncLoading = false this.$Message.loading("地区数据正在更新中!");