index.js 3.3 KB

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