index.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. // 相机Demo页面
  7. { path: '/camera-demo', component: () => import('../views/CameraDemo.vue') },
  8. { path: '/login', component: () => import('../views/Login.vue') },
  9. // 免登录
  10. { path: '/quick-login', component: () => import('../views/QuickLogin.vue') },
  11. // 首页
  12. {
  13. path: '/home',
  14. component: () => import('../components/HomePage.vue')
  15. },
  16. // 智能课
  17. {
  18. path: '/ai-general-course',
  19. component: () => import('../views/AIPage/AIGeneralCourse.vue')
  20. },
  21. // AI实验室
  22. {
  23. path: '/ai-laboratory',
  24. component: () => import('../views/AIPage/AILaboratory.vue')
  25. },
  26. // 英文数字人老师
  27. {
  28. path: '/ai-ennumerals',
  29. component: () => import('../views/EnNumerals/index.vue')
  30. },
  31. // 能力测评 问卷列表
  32. {
  33. path: '/evaluation',
  34. component: () => import('../views/evaluation/testList.vue')
  35. },
  36. // 在线测试
  37. {
  38. path: '/testTopic',
  39. component: () => import('../views/evaluation/testTopic.vue')
  40. },
  41. // 个性化学习
  42. {
  43. path: '/personalized',
  44. component: () => import('../views/personalized/Personalized.vue')
  45. },
  46. // 测试提交
  47. {
  48. path: '/testSubmit',
  49. component: () => import('../views/evaluation/testSubmit.vue')
  50. },
  51. // 智能绘画
  52. {
  53. path: '/ai-painting',
  54. component: () => import('../views/AIPage/AIPainting.vue')
  55. },
  56. // 图生图
  57. {
  58. path: '/ai-image',
  59. component: () => import('../views/AIPage/AIImageToImage.vue')
  60. },
  61. // AI头像
  62. {
  63. path: '/ai-avatar',
  64. component: () => import('../views/AIPage/AIAvatar.vue')
  65. },
  66. // 图生视频
  67. {
  68. path: '/ai-video',
  69. component: () => import('../views/AIPage/AIImageToVideo.vue')
  70. },
  71. // 智能问答
  72. {
  73. path: '/ai-questions',
  74. component: () => import('../views/AIPage/AIQuestions.vue')
  75. },
  76. // 发展历程
  77. {
  78. path: '/ai-develop',
  79. component: () => import('../views/AIPage/AIDevelop.vue')
  80. },
  81. // 虚拟实验室
  82. {
  83. path: '/virtual-laboratory',
  84. component: () => import('../views/virtuallaboratory/index.vue')
  85. },
  86. // Blockly
  87. { path: '/blockly', component: () => import('../views/block/Blockly.vue') },
  88. // Blockly2
  89. { path: '/blockly2', component: () => import('../views/block/Blockly2.vue') },
  90. { path: '/mapGame', component: () => import('../views/block/MapGame.vue') },
  91. // 编程游戏列表
  92. { path: '/programming', component: () => import('../views/gamepage/GameIndex.vue') },
  93. ]
  94. const router = createRouter({
  95. history: createWebHistory(),
  96. routes
  97. })
  98. export default router