@@ -414,7 +414,7 @@
console.log(ind, '当前下标')
//判断这个商品是否已经存在数组
if (ind > -1) {
- that.shopList[ind].num++;
+ that.shopList[ind].num += num;
console.log(that.shopList, '添加数据后对象')
} else {