routes.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import Home from './Home.vue';
  2. /**
  3. * 路由表配置
  4. */
  5. const routes = [
  6. { path: '/', component: Home },
  7. // 登录与注册
  8. { path: '/login', component: () => import('./Login.vue') },
  9. { path: '/reg', component: () => import('./Register.vue') },
  10. // 会话
  11. { path: '/conversation', component: () => import('./Conversation.vue') },
  12. // 知识库
  13. { path: '/knowledge', component: () => import('./Knowledge.vue') },
  14. // 模型
  15. { path: '/model', component: () => import('./Model.vue') },
  16. // Agent
  17. { path: '/agent', component: () => import('./Agent.vue') },
  18. // 智能体
  19. { path: '/intelligent', component: () => import('./Intelligent.vue') },
  20. // 权限管理
  21. { path: '/permission', component: () => import('./Permissions.vue') },
  22. { path: '/permission/org', component: () => import('./PermissionOrganization.vue') },
  23. { path: '/permission/account', component: () => import('./PermissionAccount.vue') },
  24. { path: '/permission/role', component: () => import('./PermissionRole.vue') },
  25. { path: '/permission/resource', component: () => import('./PermissionResource.vue') },
  26. // 个人中心
  27. { path: '/profile', component: () => import('./Profiles.vue') },
  28. { path: '/setting', component: () => import('./Settings.vue') },
  29. { path: '/about', component: () => import('./About.vue') }
  30. ];
  31. export default routes;