🦀️ fix: 修复重新授权bug
This commit is contained in:
parent
0f92d054fe
commit
81061414ac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue