Fix:2999 【商城小程序】在当前页面增减商品数量,关闭规格选择后再次打开,商品数量显示为1,点击增减,商品数量变为在之前填写的数量基础上增减

This commit is contained in:
modendeveloper
2025-01-08 20:49:09 +08:00
parent ed006c46c5
commit 4a929f4b32
+1
View File
@@ -1251,6 +1251,7 @@ export default {
changeattr(msg) {
// 修改了规格
this.attr.cartAttr = msg
this.$set(this.attr.productSelect, 'cart_num', 1)
this.isOpen = false
},
// 选择属性