refactor(chat + workspace): chat和workspace重构,子路由、懒加载等

This commit is contained in:
sophie committed 2026-06-10 16:39:05 +08:00
1 parent 0a647a0b79
commit 1f1f7236b0
57 files changed
+4356 -3798

No files matched your search

@@ -0,0 +1,64 @@
/**
* 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: '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/pages/HistoryPage.vue'),
meta: { title: '聊天历史' },
},
],
},
];