fix(router): 补回「个人中心」Profile 路由,修复点击无反应
Root 的 children 为空,全局没有任何 name: 'Profile' 的路由,
布局右上角「个人中心」执行 router.push({name:'Profile'}) 匹配不到,
页面无跳转也无提示。
按历史版本补回 /profile 子路由,隐藏于菜单。
Co-Authored-By: Claude Code <noreply@anthropic.com>
| | |
| | | name: 'Root', |
| | | path: '/', |
| | | redirect: preferences.app.defaultHomePath, |
| | | children: [], |
| | | children: [ |
| | | { |
| | | component: () => import('#/views/_core/profile/index.vue'), |
| | | meta: { |
| | | fullPathKey: false, |
| | | hideInMenu: true, |
| | | icon: 'lucide:user-round', |
| | | title: '个人中心', |
| | | }, |
| | | name: 'Profile', |
| | | path: 'profile', |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | component: AuthPageLayout, |