route.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import Home from '../views/Home.vue';
  2. /**
  3. * 路由表配置
  4. */
  5. export const systemRoutes = [
  6. { path: '/', component: Home, redirect: '/chat/qa' },
  7. // { path: '/', component: Home, redirect: '/xiaoshu' },
  8. // { path: '/', component: Home },
  9. // 登录与注册 白名单页面
  10. { path: '/login', component: () => import('../views/Login.vue') },
  11. { path: '/reg', component: () => import('../views/Register.vue') },
  12. { path: '/chat/voice', component: () => import('../views/ConversationVoice.vue') },
  13. /**
  14. * 设置
  15. */
  16. {
  17. path: '/settings',
  18. component: () => import('../views/Settings.vue'),
  19. children: [
  20. {
  21. path: 'profile',
  22. component: () => import('../views/SettingsProfile.vue')
  23. },
  24. // 修改密码
  25. {
  26. // path: '/settings/password',
  27. path: 'password',
  28. component: () => import('../views/SettingsPassword.vue')
  29. },
  30. {
  31. path: 'phone',
  32. component: () => import('../views/SettingsPhone.vue')
  33. },
  34. {
  35. path: 'email',
  36. component: () => import('../views/SettingsEmail.vue')
  37. },
  38. // 通用配置
  39. {
  40. path: 'global',
  41. component: () => import('../views/SettingsGlobal.vue')
  42. }
  43. ]
  44. },
  45. // 错误页面
  46. { path: '/denied', component: () => import('../views/Denied.vue') }
  47. // // 会话
  48. // // { path: '/chat', redirect: '/chat/qa' },
  49. // { path: '/chat', component: () => import('../views/Conversation.vue') },
  50. // { path: '/chat/qa', component: () => import('../views/ConversationQA.vue') },
  51. // { path: '/chat/history', component: () => import('../views/ConversationHistory.vue') },
  52. // { path: '/chat/board', component: () => import('../views/ConversationBoard.vue') },
  53. // // // 知识库
  54. // { path: '/knowledge', component: () => import('../views/Knowledge.vue') },
  55. // { path: '/knowledge/detail', component: () => import('../views/KnowledgeDetail.vue') },
  56. // // 模型
  57. // { path: '/model', component: () => import('../views/Model.vue') },
  58. // // Agent
  59. // { path: '/agent', component: () => import('../views/Agent.vue') },
  60. // // 智能体
  61. // { path: '/intelligent', component: () => import('../views/Intelligent.vue') },
  62. // // dify智能体详情
  63. // { path: '/intelligent/detail', component: () => import('../views/difyDetail.vue') },
  64. // // 权限管理
  65. // {
  66. // path: '/permission',
  67. // component: () => import('../views/layout/LayoutPermission.vue'),
  68. // children: [
  69. // { path: '/permission/account', component: () => import('../views/PermissionAccount.vue') },
  70. // { path: '/permission/org', component: () => import('../views/PermissionOrganization.vue') },
  71. // { path: '/permission/resource', component: () => import('../views/PermissionResource.vue') },
  72. // { path: '/permission/role', component: () => import('../views/PermissionRole.vue') },
  73. // { path: '/permission/group', component: () => import('../views/PermissionGroup.vue') }
  74. // ]
  75. // },
  76. // // 个人中心
  77. // { path: '/profile', component: () => import('../views/Profiles.vue') },
  78. // { path: '/setting', component: () => import('../views/Settings.vue') },
  79. // { path: '/xiaoshu', component: () => import('../views/Xiaoshu.vue') },
  80. // { path: '/ragchat', component: () => import('../views/RagFlowChat.vue') },
  81. // { path: '/about', component: () => import('../views/About.vue') }
  82. ];