mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	解决处理顶级非目录路由的组件名称逻辑缺失的问题
This commit is contained in:
		@@ -93,7 +93,10 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
 | 
			
		||||
      meta.alwaysShow = true
 | 
			
		||||
      const childrenData: AppRouteRecordRaw = {
 | 
			
		||||
        path: '',
 | 
			
		||||
        name: toCamelCase(route.path, true),
 | 
			
		||||
        name:
 | 
			
		||||
          route.componentName && route.componentName.length > 0
 | 
			
		||||
            ? route.componentName
 | 
			
		||||
            : toCamelCase(route.path, true),
 | 
			
		||||
        redirect: route.redirect,
 | 
			
		||||
        meta: meta
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user