feat: 重构个人消息中心,支持展示个人公告,并优化相关地址

This commit is contained in:
2025-04-05 22:43:35 +08:00
parent ec43ba4c8f
commit 89d0d9ebb1
25 changed files with 586 additions and 257 deletions

View File

@@ -43,23 +43,29 @@ export const systemRoutes: RouteRecordRaw[] = [
meta: { hidden: true },
},
{
path: '/setting',
name: 'Setting',
path: '/user',
name: 'User',
component: Layout,
meta: { hidden: true },
children: [
{
path: '/setting/profile',
name: 'SettingProfile',
component: () => import('@/views/setting/profile/index.vue'),
path: '/user/profile',
name: 'UserProfile',
component: () => import('@/views/user/profile/index.vue'),
meta: { title: '个人中心', showInTabs: false },
},
{
path: '/setting/message',
name: 'SettingMessage',
component: () => import('@/views/setting/message/index.vue'),
path: '/user/message',
name: 'UserMessage',
component: () => import('@/views/user/message/index.vue'),
meta: { title: '消息中心', showInTabs: false },
},
{
path: '/user/notice',
name: 'UserNotice',
component: () => import('@/views/user/message/components/detail/index.vue'),
meta: { title: '公告详情' },
},
],
},
{