fix:修复商品列表登录过期跳转错误
This commit is contained in:
parent
dc6ea7175a
commit
3d43b3c5a3
|
@ -407,7 +407,7 @@
|
|||
localStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
||||
localStorage.setItem('key', goodsArr[0].key);
|
||||
localStorage.setItem('token', goodsArr[0].token);
|
||||
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./index.html?id=" + localStorage.getItem('linkId'));
|
||||
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "../index.html?id=" + localStorage.getItem('linkId'));
|
||||
return false;
|
||||
} else if (goodsArr && goodsArr.length >= 1) {
|
||||
self.goodsNum = true;
|
||||
|
@ -478,7 +478,7 @@
|
|||
}, 3000);
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
window.location.href = "./index.html?id=" + localStorage.getItem('linkId');
|
||||
window.location.href = "../index.html?id=" + localStorage.getItem('linkId');
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue