From 8cbffc707ffa88b788b862294964aed992e109e6 Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 22 Mar 2023 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E7=9B=B4=E6=92=AD=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/pages/marketing/live/add_goods.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() {