fix(商品页):修复一个商品时跳转错误
This commit is contained in:
parent
e400aa2be2
commit
a6caf65c50
|
@ -400,7 +400,7 @@
|
||||||
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
||||||
sessionStorage.setItem('key', goodsArr[0].key);
|
sessionStorage.setItem('key', goodsArr[0].key);
|
||||||
sessionStorage.setItem('token', goodsArr[0].token);
|
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;
|
return false;
|
||||||
} else if (goodsArr && goodsArr.length >= 1) {
|
} else if (goodsArr && goodsArr.length >= 1) {
|
||||||
self.goodsNum = true;
|
self.goodsNum = true;
|
||||||
|
|
Loading…
Reference in New Issue