From 9b6905e733a8235afffe9ca4c67e693dd5348bfe Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 26 Dec 2023 17:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/list/index.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/product/list/index.vue b/pages/product/list/index.vue index d7b1c36..a74632b 100644 --- a/pages/product/list/index.vue +++ b/pages/product/list/index.vue @@ -394,7 +394,18 @@ }).then((res)=>{ Toast(res.message); this.lableShow = false; - this.getList(this.mer_id, true); + this.productList.forEach(item=>{ + if(item.product_id==this.lableInfo.id){ + let arr = [] + this.lableInfo.mer_labels.forEach(t=>{ + arr.push({ + product_label_id: t + }) + }) + item.mer_labels = arr; + } + }) + // this.getList(this.mer_id, true); }).catch(e=>{ Toast(e) this.lableShow = false;