refactor(frontend): 重构前端第三版

This commit is contained in:
sophie committed 2026-06-11 20:11:51 +08:00
1 parent bf32f8b954
commit dc141d19a2
49 files changed
+5333 -4234

No files matched your search

@@ -77,7 +77,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "knowledge_base",
title: "知识库",
title: "知识库配置",
},
},
{
+2 -3
View File
@@ -1,11 +1,10 @@
/**
* app/router/routes/kb.routes.ts
* 知识库相关路由。
* 知识库兼容路由:旧 URL 重定向至 canonical 路径。
*/
import type { RouteRecordRaw } from 'vue-router';
import KbWorkspaceView from '@/views/KbWorkspaceView.vue';
export const kbRoutes: RouteRecordRaw[] = [
{ path: '/kb/workspace', name: 'KbWorkspace', component: KbWorkspaceView, meta: { title: '知识库工作台' } },
{ path: '/kb/workspace', redirect: { path: '/workspace/knowledge-base' } },
{ path: '/kb/admin', redirect: { path: '/admin/knowledge-base' } },
];
@@ -33,7 +33,7 @@ export const workspaceRoutes: RouteRecordRaw[] = [
path: 'knowledge-base',
name: 'workspace-knowledge-base',
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
meta: { title: '知识库管理' },
meta: { title: '知识库' },
},
{
path: 'schedule-runs',
@@ -56,7 +56,7 @@ export const workspaceRoutes: RouteRecordRaw[] = [
{
path: 'history',
name: 'workspace-history',
component: () => import('@/features/chat/pages/HistoryPage.vue'),
component: () => import('@/features/chat/history/HistoryPage.vue'),
meta: { title: '聊天历史' },
},
],