7 changed files with 87 additions and 52 deletions
@ -1,7 +1,34 @@
@@ -1,7 +1,34 @@
|
||||
// 路由映射数据 - 构建时生成
|
||||
export default { |
||||
// 路由配置
|
||||
routes: [], |
||||
routes: [ |
||||
{ |
||||
"path": "/", |
||||
"component": "MainLayout", |
||||
"name": "Home", |
||||
"description": "首页" |
||||
}, |
||||
{ |
||||
"path": "/user-management", |
||||
"component": "UserManagement", |
||||
"description": "用户管理" |
||||
}, |
||||
{ |
||||
"path": "/settings", |
||||
"component": "Settings", |
||||
"description": "系统设置" |
||||
}, |
||||
{ |
||||
"path": "/user-profile", |
||||
"component": "UserProfile", |
||||
"description": "个人资料" |
||||
}, |
||||
{ |
||||
"path": "/role-management", |
||||
"component": "RoleManagement", |
||||
"description": "角色管理" |
||||
} |
||||
], |
||||
|
||||
// API映射配置
|
||||
apiMappings: [] |
||||
|
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
import { RouteCollector } from './src/renderer/modules/route-sync/RouteCollector.js'; |
||||
|
||||
const collector = new RouteCollector(); |
||||
const routes = collector.collectRoutes(); |
||||
|
||||
console.log('优化后的路由收集结果:'); |
||||
console.log('路由数量:', routes.length); |
||||
console.log('路由详情:'); |
||||
routes.forEach((route, index) => { |
||||
console.log(`${index + 1}. ${route.path} - name: ${route.name} - component: ${route.component} - description: ${route.description}`); |
||||
}); |
Loading…
Reference in new issue