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);