fix: 修复拼团批量删除,所选数量不正确问题

master
misworga831 2023-09-30 17:48:35 +08:00
parent 8666254ffe
commit 2aae5a4bff
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}, },
}); });
}, },