Commit 5fce1afe by 芋道源码 Committed by Gitee

!636 修复菜单总是显示无效的问题

Merge pull request !636 from chenting/N/A
parents 69f76705 7faea8c3
...@@ -73,7 +73,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord ...@@ -73,7 +73,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
noCache: !route.keepAlive, noCache: !route.keepAlive,
alwaysShow: alwaysShow:
route.children && route.children &&
route.children.length === 1 && route.children.length > 0 &&
(route.alwaysShow !== undefined ? route.alwaysShow : true) (route.alwaysShow !== undefined ? route.alwaysShow : true)
} as any } as any
// 特殊逻辑:如果后端配置的 MenuDO.component 包含 ?,则表示需要传递参数 // 特殊逻辑:如果后端配置的 MenuDO.component 包含 ?,则表示需要传递参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment