index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/AILogin.vue') },
  6. // 首页
  7. {
  8. path: '/home',
  9. component: () => import('../components/HomePage.vue')
  10. },
  11. // 智能课
  12. {
  13. path: '/ai-general-course',
  14. component: () => import('../views/AIGeneralCourse.vue')
  15. },
  16. // AI实验室
  17. {
  18. path: '/ai-laboratory',
  19. component: () => import('../views/AILaboratory.vue')
  20. },
  21. // 智能绘画
  22. {
  23. path: '/ai-painting',
  24. component: () => import('../views/AIPainting.vue')
  25. },
  26. // 智能问答
  27. {
  28. path: '/ai-questions',
  29. component: () => import('../views/AIQuestions.vue')
  30. },
  31. // AI初体验
  32. {
  33. path: '/ai-initial-experience',
  34. component: () => import('../views/AIInitialExperience.vue')
  35. },
  36. // 发展历程
  37. {
  38. path: '/ai-develop',
  39. component: () => import('../views/AIDevelop.vue')
  40. },
  41. // 高年级
  42. {
  43. path: '/senior-grade',
  44. component: () => import('../views/SeniorGrade.vue')
  45. }
  46. ]
  47. const router = createRouter({
  48. history: createWebHistory(),
  49. routes
  50. })
  51. export default router