Skip to content

Commit 7faea8c

Browse files
moon6967gitee-org
authored andcommitted
修复菜单总是显示无效的问题
Signed-off-by: chenting <1016830869@qq.com>
1 parent c144439 commit 7faea8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/routerHelper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
7373
noCache: !route.keepAlive,
7474
alwaysShow:
7575
route.children &&
76-
route.children.length === 1 &&
76+
route.children.length > 0 &&
7777
(route.alwaysShow !== undefined ? route.alwaysShow : true)
7878
} as any
7979
// 特殊逻辑:如果后端配置的 MenuDO.component 包含 ?,则表示需要传递参数

0 commit comments

Comments
 (0)