fix(index):修复导航菜单查询条件
- 添加 hide 参数以过滤隐藏菜单项 - 确保只显示可见的导航菜单 - 优化菜单数据加载逻辑
This commit is contained in:
@@ -13,7 +13,7 @@ const MyGrid = () => {
|
||||
const home = await listCmsNavigation({model: 'index'});
|
||||
const homeId = home[0].navigationId;
|
||||
if(homeId){
|
||||
const menu = await listCmsNavigation({home: 0, parentId: homeId})
|
||||
const menu = await listCmsNavigation({home: 0, parentId: homeId, hide: 0})
|
||||
setList(menu)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user