Commit 0d74960d by 胡悦

fix: 修复商品选择时使用错误的ID进行比较的问题

1 parent d022b781
......@@ -337,7 +337,7 @@ export default {
const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.goods.upgradeGoodsId === item.multipleSpecificationsGoods.goods.upgradeGoodsId)
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.goods.goodsId === item.multipleSpecificationsGoods.goods.goodsId)
})
// 合并已选的goodFlag为2的对象
this.orderObj[_typeValue.key] = [...singleGoods, ...moreGoods, ...selectedGoods]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!