diff --git a/src/utils/routerHelper.ts b/src/utils/routerHelper.ts index b65f93a0..9da86818 100644 --- a/src/utils/routerHelper.ts +++ b/src/utils/routerHelper.ts @@ -100,7 +100,6 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord //处理顶级非目录路由 if (!route.children && route.parentId == 0 && route.component) { data.component = Layout - data.meta = {} data.name = toCamelCase(route.path, true) + 'Parent' data.redirect = '' meta.alwaysShow = true