fix(index):修复导航菜单查询条件

- 添加 hide 参数以过滤隐藏菜单项
- 确保只显示可见的导航菜单
- 优化菜单数据加载逻辑
This commit is contained in:
2025-10-04 17:32:15 +08:00
parent b7e8d52cf0
commit 1453e79104

View File

@@ -13,7 +13,7 @@ const MyGrid = () => {
const home = await listCmsNavigation({model: 'index'}); const home = await listCmsNavigation({model: 'index'});
const homeId = home[0].navigationId; const homeId = home[0].navigationId;
if(homeId){ if(homeId){
const menu = await listCmsNavigation({home: 0, parentId: homeId}) const menu = await listCmsNavigation({home: 0, parentId: homeId, hide: 0})
setList(menu) setList(menu)
} }
} }