fix:修复商品列表登录过期跳转错误

This commit is contained in:
wangsongsole 2022-10-09 13:42:43 +08:00
parent dc6ea7175a
commit 3d43b3c5a3
1 changed files with 2 additions and 2 deletions

View File

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