import { createRouter, createWebHistory } from 'vue-router'
import App from '../App.vue'
import HomePage from '../components/HomePage.vue'

const routes = [
  { path: '/', component: App },
  { path: '/home', component: HomePage },
  {
    path: '/ai-general-course',
    component: () => import('../views/AIGeneralCourse.vue')
  }
  // 可按需添加更多路由
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
