index.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. import App from '../App.vue'
  3. // import HomePage from '../components/HomePage.vue'
  4. const routes = [
  5. { path: '/', component: () => import('../views/Login.vue') },
  6. { path: '/login', component: () => import('../views/Login.vue') },
  7. // 免登录
  8. { path: '/quick-login', component: () => import('../views/QuickLogin.vue') },
  9. // Blockly
  10. { path: '/blockly', component: () => import('../views/Blockly.vue') },
  11. // 首页
  12. {
  13. path: '/home',
  14. component: () => import('../components/HomePage.vue')
  15. },
  16. // 智能课
  17. {
  18. path: '/ai-general-course',
  19. component: () => import('../views/AIGeneralCourse.vue')
  20. },
  21. // AI实验室
  22. {
  23. path: '/ai-laboratory',
  24. component: () => import('../views/AILaboratory.vue')
  25. },
  26. // 能力测评 问卷列表
  27. {
  28. path: '/evaluation',
  29. component: () => import('../views/evaluation/testList.vue')
  30. },
  31. // 在线测试
  32. {
  33. path: '/testTopic',
  34. component: () => import('../views/evaluation/testTopic.vue')
  35. },
  36. // 个性化学习
  37. {
  38. path: '/personalized',
  39. component: () => import('../views/personalized/Personalized.vue')
  40. },
  41. // 测试提交
  42. {
  43. path: '/testSubmit',
  44. component: () => import('../views/evaluation/testSubmit.vue')
  45. },
  46. // 智能绘画
  47. {
  48. path: '/ai-painting',
  49. component: () => import('../views/AIPainting.vue')
  50. },
  51. // 图生图
  52. {
  53. path: '/ai-image',
  54. component: () => import('../views/AIImageToImage.vue')
  55. },
  56. // 图生视频
  57. {
  58. path: '/ai-video',
  59. component: () => import('../views/AIImageToVideo.vue')
  60. },
  61. // 智能问答
  62. {
  63. path: '/ai-questions',
  64. component: () => import('../views/AIQuestions.vue')
  65. },
  66. // 发展历程
  67. {
  68. path: '/ai-develop',
  69. component: () => import('../views/AIDevelop.vue')
  70. }
  71. ]
  72. const router = createRouter({
  73. history: createWebHistory(),
  74. routes
  75. })
  76. export default router