mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 01:15:53 +08:00
fix: 修复拼团批量删除,所选数量不正确问题
This commit is contained in:
@@ -277,6 +277,7 @@ export default {
|
|||||||
delGoods(index) {
|
delGoods(index) {
|
||||||
// 删除商品
|
// 删除商品
|
||||||
this.goodsData.splice(index, 1);
|
this.goodsData.splice(index, 1);
|
||||||
|
this.selectCount = 0;
|
||||||
},
|
},
|
||||||
delAll() {
|
delAll() {
|
||||||
// 批量删除商品
|
// 批量删除商品
|
||||||
@@ -295,6 +296,7 @@ export default {
|
|||||||
this.goodsData = this.goodsData.filter((item) => {
|
this.goodsData = this.goodsData.filter((item) => {
|
||||||
return !ids.includes(item.skuId);
|
return !ids.includes(item.skuId);
|
||||||
});
|
});
|
||||||
|
this.selectCount = 0;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user