mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): the length of routes children list should greater than 0
This commit is contained in:
@ -10,7 +10,7 @@ export function transformAuthRouteToMenu(routes: AuthRoute.Route[]): App.GlobalM
|
||||
const { name, path, meta } = route;
|
||||
const routeName = name as string;
|
||||
let menuChildren: App.GlobalMenuOption[] | undefined;
|
||||
if (route.children) {
|
||||
if (route.children && route.children.length > 0) {
|
||||
menuChildren = transformAuthRouteToMenu(route.children);
|
||||
}
|
||||
const menuItem: App.GlobalMenuOption = addPartialProps({
|
||||
|
Reference in New Issue
Block a user