| 123456789101112131415161718192021222324252627282930313233 |
- 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')
- },
- // AI初体验
- {
- path: '/ai-initial-experience',
- component: () => import('../views/AIInitialExperience.vue')
- },
- // 发展历程
- {
- path: '/ai-develop',
- component: () => import('../views/AIDevelop.vue')
- },
- // 高年级
- {
- path: '/senior-grade',
- component: () => import('../views/SeniorGrade.vue')
- }
- ]
- const router = createRouter({
- history: createWebHistory(),
- routes
- })
- export default router
|