Skip to content

Commit 5fce1af

Browse files
YunaiVgitee-org
authored andcommitted
!636 修复菜单总是显示无效的问题
Merge pull request !636 from chenting/N/A
2 parents 69f7670 + 7faea8c commit 5fce1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/routerHelper.ts

Lines changed: 1 addition & 1 deletion
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)