🦀️ fix: 修复重新授权bug
This commit is contained in:
parent
0f92d054fe
commit
81061414ac
|
@ -108,6 +108,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
async created () {
|
async created () {
|
||||||
|
sessionStorage.clear();
|
||||||
|
localStorage.clear();
|
||||||
await req.axiosGet('/conf/apiStatus').then(res => {
|
await req.axiosGet('/conf/apiStatus').then(res => {
|
||||||
if (res.data.update) {
|
if (res.data.update) {
|
||||||
sessionStorage.setItem('notice', res.data.msg);
|
sessionStorage.setItem('notice', res.data.msg);
|
||||||
|
@ -162,12 +164,13 @@
|
||||||
localStorage.setItem('haskey', keyCode);
|
localStorage.setItem('haskey', keyCode);
|
||||||
this.openDialog('正在加载商品...');
|
this.openDialog('正在加载商品...');
|
||||||
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
|
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
|
||||||
setTimeout(() => {
|
let clr = setTimeout(() => {
|
||||||
if (this.pageType === 4 || this.pageType === 8) {
|
if (this.pageType === 4 || this.pageType === 8) {
|
||||||
window.location.replace('/coupon/couponCollection.html');
|
window.location.replace('/coupon/couponCollection.html');
|
||||||
} else {
|
} else {
|
||||||
window.location.replace('/homepage.html');
|
window.location.replace('/homepage.html');
|
||||||
}
|
}
|
||||||
|
clearTimeout(clr);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
self.openErrorDialog(res.message);
|
self.openErrorDialog(res.message);
|
||||||
|
|
Loading…
Reference in New Issue