We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a0c7c commit 361e4faCopy full SHA for 361e4fa
src/utils/routerHelper.ts
@@ -93,7 +93,10 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
93
meta.alwaysShow = true
94
const childrenData: AppRouteRecordRaw = {
95
path: '',
96
- name: toCamelCase(route.path, true),
+ name:
97
+ route.componentName && route.componentName.length > 0
98
+ ? route.componentName
99
+ : toCamelCase(route.path, true),
100
redirect: route.redirect,
101
meta: meta
102
}
0 commit comments