修复优化促销问题

This commit is contained in:
paulGao
2021-12-25 18:36:15 +08:00
parent 6c1d7cce8d
commit 54dcd2d8be
8 changed files with 31 additions and 35 deletions

View File

@@ -341,10 +341,10 @@ export default {
onOk: () => {
let ids = [];
this.selectedGoods.forEach(function (e) {
ids.push(e.id);
ids.push(e.skuId);
});
this.promotionGoodsList = this.promotionGoodsList.filter((item) => {
return !ids.includes(item.id);
return !ids.includes(item.skuId);
});
},
});