fix(商品页):修复一个商品时跳转错误

This commit is contained in:
wangsongsole 2022-09-29 17:20:43 +08:00
parent e400aa2be2
commit a6caf65c50
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
sessionStorage.setItem('key', goodsArr[0].key);
sessionStorage.setItem('token', goodsArr[0].token);
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./reduce.html");
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./index.html");
return false;
} else if (goodsArr && goodsArr.length >= 1) {
self.goodsNum = true;