修复h5模式下购物车问题

This commit is contained in:
hupeng committed 2025-07-10 10:54:31 +08:00
commit d591573828
1 file changed
+1 -1
+1 -1
View File
@@ -542,7 +542,7 @@ const calcSize = () => {
const handleAddToCart = (cate, newGood, num) =>{ //添加到购物车
const index = cart.value.findIndex(item => {
if (newGood) {
return (item.id === newGood.id) && (item.props_text === good.value.valueStr)
return (item.id === newGood.id) && (item.valueStr === good.value.valueStr)
} else {
return item.id === newGood.id
}