route copy.js 3.5 KB

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