index.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. {
  9. path: '/home',
  10. component: () => import('../components/HomePage.vue')
  11. },
  12. // 智能课
  13. {
  14. path: '/ai-general-course',
  15. component: () => import('../views/AIGeneralCourse.vue')
  16. },
  17. // AI实验室
  18. {
  19. path: '/ai-laboratory',
  20. component: () => import('../views/AILaboratory.vue')
  21. },
  22. // 能力测评 问卷列表
  23. {
  24. path: '/evaluation',
  25. component: () => import('../views/evaluation/testList.vue')
  26. },
  27. // 在线测试
  28. {
  29. path: '/testTopic',
  30. component: () => import('../views/evaluation/testTopic.vue')
  31. },
  32. // 个性化学习
  33. {
  34. path: '/personalized',
  35. component: () => import('../views/personalized/Personalized.vue')
  36. },
  37. // 测试提交
  38. {
  39. path: '/testSubmit',
  40. component: () => import('../views/evaluation/testSubmit.vue')
  41. },
  42. // 智能绘画
  43. {
  44. path: '/ai-painting',
  45. component: () => import('../views/AIPainting.vue')
  46. },
  47. // 智能问答
  48. {
  49. path: '/ai-questions',
  50. component: () => import('../views/AIQuestions.vue')
  51. },
  52. // 发展历程
  53. {
  54. path: '/ai-develop',
  55. component: () => import('../views/AIDevelop.vue')
  56. },
  57. // 高年级
  58. {
  59. path: '/senior-grade',
  60. component: () => import('../views/SeniorGrade.vue')
  61. }
  62. ]
  63. const router = createRouter({
  64. history: createWebHistory(),
  65. routes
  66. })
  67. export default router