From 81061414ac0cfa896ace4f29155505cb8c98f2d9 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Sat, 27 Jan 2024 18:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=87=8D=E6=96=B0=E6=8E=88=E6=9D=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 2769c74..2f0ab40 100644 --- a/index.html +++ b/index.html @@ -108,6 +108,8 @@ }, async created () { + sessionStorage.clear(); + localStorage.clear(); await req.axiosGet('/conf/apiStatus').then(res => { if (res.data.update) { sessionStorage.setItem('notice', res.data.msg); @@ -162,12 +164,13 @@ localStorage.setItem('haskey', keyCode); this.openDialog('正在加载商品...'); localStorage.setItem('entryLink', window.location.href);//存储起始页链接 - setTimeout(() => { + let clr = setTimeout(() => { if (this.pageType === 4 || this.pageType === 8) { window.location.replace('/coupon/couponCollection.html'); } else { window.location.replace('/homepage.html'); } + clearTimeout(clr); }, 1000); } else { self.openErrorDialog(res.message);