|
|
@@ -0,0 +1,99 @@
|
|
|
+import Home from '../views/Home.vue';
|
|
|
+
|
|
|
+/**
|
|
|
+ * 路由表配置
|
|
|
+ */
|
|
|
+export const systemRoutes = [
|
|
|
+ { path: '/', component: Home, redirect: '/chat/qa' },
|
|
|
+ // { path: '/', component: Home, redirect: '/xiaoshu' },
|
|
|
+ // { path: '/', component: Home },
|
|
|
+
|
|
|
+ // 登录与注册 白名单页面
|
|
|
+ { path: '/auth', component: () => import('../views/Auth.vue') },
|
|
|
+ { 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: 'auth',
|
|
|
+ component: () => import('../views/SettingsAuth.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') }
|
|
|
+];
|