diff --git a/src/utils/route.ts b/src/utils/route.ts index 124b767..a499546 100644 --- a/src/utils/route.ts +++ b/src/utils/route.ts @@ -37,7 +37,7 @@ const convertToDashedString = (input: string): string => { } export const convertRouteToMenu = (data: RouteRecordRaw[], basePath: string = '/home', iconIndex: number = 0): MenuItemModel[] => { - return data.filter((i) => i.path !== '').map((item) => { + return data.filter((i) => i.path !== '' && i.name != undefined).map((item) => { const convertedItem: MenuItemModel = { name: item.name?.toString() || '', path: `${basePath}/${item.path}`,