| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import Home from '../views/Home.vue';
- /**
- * 路由表配置
- */
- export const systemRoutes = [
- { path: '/', component: Home, redirect: '/chat/qa' },
- // { path: '/', component: Home, redirect: '/xiaoshu' },
- // { path: '/', component: Home },
- // 登录与注册 白名单页面
- { path: '/login', component: () => import('../views/Login.vue') },
- { path: '/reg', component: () => import('../views/Register.vue') },
- { path: '/chat/voice', component: () => import('../views/ConversationVoice.vue') },
- /**
- * 设置
- */
- {
- path: '/settings',
- component: () => import('../views/Settings.vue'),
- children: [
- {
- path: 'profile',
- component: () => import('../views/SettingsProfile.vue')
- },
- // 修改密码
- {
- // path: '/settings/password',
- path: 'password',
- component: () => import('../views/SettingsPassword.vue')
- },
- {
- path: 'phone',
- component: () => import('../views/SettingsPhone.vue')
- },
- {
- path: 'email',
- component: () => import('../views/SettingsEmail.vue')
- },
- // 通用配置
- {
- path: 'global',
- component: () => import('../views/SettingsGlobal.vue')
- }
- ]
- },
- // 错误页面
- { path: '/denied', component: () => import('../views/Denied.vue') }
- // // 会话
- // // { path: '/chat', redirect: '/chat/qa' },
- // { path: '/chat', component: () => import('../views/Conversation.vue') },
- // { path: '/chat/qa', component: () => import('../views/ConversationQA.vue') },
- // { path: '/chat/history', component: () => import('../views/ConversationHistory.vue') },
- // { path: '/chat/board', component: () => import('../views/ConversationBoard.vue') },
- // // // 知识库
- // { path: '/knowledge', component: () => import('../views/Knowledge.vue') },
- // { path: '/knowledge/detail', component: () => import('../views/KnowledgeDetail.vue') },
- // // 模型
- // { path: '/model', component: () => import('../views/Model.vue') },
- // // Agent
- // { path: '/agent', component: () => import('../views/Agent.vue') },
- // // 智能体
- // { path: '/intelligent', component: () => import('../views/Intelligent.vue') },
- // // dify智能体详情
- // { path: '/intelligent/detail', component: () => import('../views/difyDetail.vue') },
- // // 权限管理
- // {
- // path: '/permission',
- // component: () => import('../views/layout/LayoutPermission.vue'),
- // children: [
- // { path: '/permission/account', component: () => import('../views/PermissionAccount.vue') },
- // { path: '/permission/org', component: () => import('../views/PermissionOrganization.vue') },
- // { path: '/permission/resource', component: () => import('../views/PermissionResource.vue') },
- // { path: '/permission/role', component: () => import('../views/PermissionRole.vue') },
- // { path: '/permission/group', component: () => import('../views/PermissionGroup.vue') }
- // ]
- // },
- // // 个人中心
- // { path: '/profile', component: () => import('../views/Profiles.vue') },
- // { path: '/setting', component: () => import('../views/Settings.vue') },
- // { path: '/xiaoshu', component: () => import('../views/Xiaoshu.vue') },
- // { path: '/ragchat', component: () => import('../views/RagFlowChat.vue') },
- // { path: '/about', component: () => import('../views/About.vue') }
- ];
|