gaoluyang
3 天以前 2065bbf1ac879e620fa4d6118da0dc1f144d69c1
fix(router): 补回「个人中心」Profile 路由,修复点击无反应

Root 的 children 为空,全局没有任何 name: 'Profile' 的路由,
布局右上角「个人中心」执行 router.push({name:'Profile'}) 匹配不到,
页面无跳转也无提示。

按历史版本补回 /profile 子路由,隐藏于菜单。

Co-Authored-By: Claude Code <noreply@anthropic.com>
已修改1个文件
14 ■■■■■ 文件已修改
src/router/routes/core.ts 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/routes/core.ts
@@ -36,7 +36,19 @@
    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,