Fix:2723 【非遗技艺】搜索后切换分类,轮播区域数据没有根据搜索词条进行展示,改为搜索以后,切换分类时也保留搜索结果

This commit is contained in:
linxi
2024-11-28 16:11:19 +08:00
parent ac10ea7a4f
commit 972f5ba027
+1 -1
View File
@@ -137,7 +137,7 @@ export default {
handleTab(index, item) {
this.actived = index
this.cacheList = item.contents
this.contents = this.cacheList
this.contents = this.cacheList.filter(e => e.name.indexOf(this.keyword) > -1)
this.categoryId = item.ichCategoryId
this.getRecommend()
},