1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

update: 首页分类查询过滤

This commit is contained in:
小莫唐尼
2025-06-11 15:57:35 +08:00
parent 9aa0e310f2
commit 256bc0e00f
2 changed files with 12 additions and 2 deletions
+3 -1
View File
@@ -214,7 +214,9 @@ export default {
}
this.$httpApi.v2
.getCategoryList({})
.getCategoryList({
fieldSelector:['spec.hideFromList==false']
})
.then(res => {
this.categoryList = res.items.sort((a, b) => {
return b.postCount - a.postCount;