From 067b8bc383109856453be6d9278658e836c1ae33 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 23 Jan 2024 17:44:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A8=A1=E7=89=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A2=84=E8=A7=88=E5=88=97=E8=A1=A8=E5=B8=A6=E5=85=A5?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/template-market/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/template-market/index.vue b/core/core-frontend/src/views/template-market/index.vue index 312b74a06e..e7f3711777 100644 --- a/core/core-frontend/src/views/template-market/index.vue +++ b/core/core-frontend/src/views/template-market/index.vue @@ -17,7 +17,7 @@ - {{ state.curTemplate.title }} + {{ state.curTemplate.title }}1 上一个 { } else { state.curTemplateShowFilter = state.marketActiveTab === '推荐' - ? state.currentMarketTemplateShowList - : state.currentMarketTemplateShowList.filter(ele => ele.showFlag) + ? state.currentMarketTemplateShowList.filter(ele => ele.showFlag) + : state.currentMarketTemplateShowList.filter( + ele => ele.showFlag && ele.categoryNames?.includes(state.marketActiveTab) + ) state.curTemplateIndex = state.curTemplateShowFilter.findIndex(temp => temp.id === previewId) state.curTemplate = state.curTemplateShowFilter[state.curTemplateIndex] previewModel.value = 'createPreview'