71 lines
2.3 KiB
TypeScript
71 lines
2.3 KiB
TypeScript
/**
|
|
* app/router/routes/workspace.routes.ts
|
|
* 工作台路由表:/workspace 布局壳 + 各业务子页面懒加载。
|
|
*/
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
export const workspaceRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/workspace',
|
|
component: () => import('@/features/workspace/views/WorkspaceLayout.vue'),
|
|
meta: { title: 'AI工作台' },
|
|
children: [
|
|
{ path: '', redirect: '/workspace/applications' },
|
|
{
|
|
path: 'profile',
|
|
name: 'workspace-profile',
|
|
component: () => import('@/features/workspace/pages/ProfilePage.vue'),
|
|
meta: { title: '个人中心' },
|
|
},
|
|
{
|
|
path: 'applications',
|
|
name: 'workspace-applications',
|
|
component: () => import('@/features/workspace/pages/HomePage.vue'),
|
|
meta: { workspaceFocus: 'applications' },
|
|
},
|
|
{
|
|
path: 'updates',
|
|
name: 'workspace-updates',
|
|
component: () => import('@/features/workspace/pages/HomePage.vue'),
|
|
meta: { workspaceFocus: 'updates' },
|
|
},
|
|
{
|
|
path: 'knowledge-base',
|
|
name: 'workspace-knowledge-base',
|
|
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
|
meta: { title: '知识库' },
|
|
},
|
|
{
|
|
path: 'knowledge-base/groups/:groupId',
|
|
name: 'workspace-knowledge-base-group',
|
|
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
|
meta: { title: '知识库' },
|
|
},
|
|
{
|
|
path: 'schedule-runs',
|
|
name: 'workspace-schedule-runs',
|
|
component: () => import('@/features/workspace/pages/ScheduleRunsPage.vue'),
|
|
meta: { title: '排程记录' },
|
|
},
|
|
{
|
|
path: 'shipping-notice',
|
|
name: 'workspace-shipping-notice',
|
|
component: () => import('@/features/workspace/pages/ShippingNoticePage.vue'),
|
|
meta: { title: '货代发货' },
|
|
},
|
|
{
|
|
path: 'feedback',
|
|
name: 'workspace-feedback',
|
|
component: () => import('@/features/workspace/pages/FeedbackPage.vue'),
|
|
meta: { title: '意见反馈' },
|
|
},
|
|
{
|
|
path: 'history',
|
|
name: 'workspace-history',
|
|
component: () => import('@/features/chat/history/HistoryPage.vue'),
|
|
meta: { title: '聊天历史' },
|
|
},
|
|
],
|
|
},
|
|
];
|