We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c144439 commit 7faea8cCopy full SHA for 7faea8c
src/utils/routerHelper.ts
@@ -73,7 +73,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
73
noCache: !route.keepAlive,
74
alwaysShow:
75
route.children &&
76
- route.children.length === 1 &&
+ route.children.length > 0 &&
77
(route.alwaysShow !== undefined ? route.alwaysShow : true)
78
} as any
79
// 特殊逻辑:如果后端配置的 MenuDO.component 包含 ?,则表示需要传递参数
0 commit comments