修复h5模式下购物车问题
This commit is contained in:
commit
d591573828
1 file changed
+1
-1
@@ -542,7 +542,7 @@ const calcSize = () => {
|
|||||||
const handleAddToCart = (cate, newGood, num) =>{ //添加到购物车
|
const handleAddToCart = (cate, newGood, num) =>{ //添加到购物车
|
||||||
const index = cart.value.findIndex(item => {
|
const index = cart.value.findIndex(item => {
|
||||||
if (newGood) {
|
if (newGood) {
|
||||||
return (item.id === newGood.id) && (item.props_text === good.value.valueStr)
|
return (item.id === newGood.id) && (item.valueStr === good.value.valueStr)
|
||||||
} else {
|
} else {
|
||||||
return item.id === newGood.id
|
return item.id === newGood.id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user