diff --git a/template/admin/src/pages/marketing/live/add_goods.vue b/template/admin/src/pages/marketing/live/add_goods.vue index 3fa7b9641..f27158f9b 100644 --- a/template/admin/src/pages/marketing/live/add_goods.vue +++ b/template/admin/src/pages/marketing/live/add_goods.vue @@ -5,7 +5,7 @@ - + {{ $route.meta.title }} @@ -170,9 +170,15 @@ export default { }, bindDelete(index) { this.goodsList.splice(index, 1); + if (this.tabList.length) { + let i = this.tabList.findIndex((e) => e.id == row.id); + this.tabList.splice(i, 1); + } }, del(row, index) { this.tabList.splice(index, 1); + let i = this.goodsList.findIndex((e) => e.product_id == row.id); + this.goodsList.splice(i, 1); }, // 提交 bindSub() {