40 lines
860 B
TypeScript
40 lines
860 B
TypeScript
|
|
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
||
|
|
|
||
|
|
const routes: Array<RouteRecordRaw> = [
|
||
|
|
{
|
||
|
|
path: '/',
|
||
|
|
redirect: '/dashboard'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/dashboard',
|
||
|
|
name: 'Dashboard',
|
||
|
|
component: () => import('@/views/dashboard/index.vue'),
|
||
|
|
meta: { title: '控制台' }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/kb',
|
||
|
|
name: 'KBManagement',
|
||
|
|
component: () => import('@/views/kb/index.vue'),
|
||
|
|
meta: { title: '知识库管理' }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/rag-lab',
|
||
|
|
name: 'RagLab',
|
||
|
|
component: () => import('@/views/rag-lab/index.vue'),
|
||
|
|
meta: { title: 'RAG 实验室' }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/monitoring',
|
||
|
|
name: 'Monitoring',
|
||
|
|
component: () => import('@/views/monitoring/index.vue'),
|
||
|
|
meta: { title: '会话监控' }
|
||
|
|
}
|
||
|
|
]
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHistory(),
|
||
|
|
routes
|
||
|
|
})
|
||
|
|
|
||
|
|
export default router
|