index.js 630 B

12345678910111213141516171819202122232425
  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: App },
  6. { path: '/home', component: HomePage },
  7. {
  8. path: '/ai-general-course',
  9. component: () => import('../views/AIGeneralCourse.vue')
  10. },
  11. {
  12. path: '/ai-initial-experience',
  13. component: () => import('../views/AIInitialExperience.vue')
  14. },
  15. {
  16. path: '/senior-grade',
  17. component: () => import('../views/SeniorGrade.vue')
  18. }
  19. ]
  20. const router = createRouter({
  21. history: createWebHistory(),
  22. routes
  23. })
  24. export default router