import { createRouter, createWebHistory } from 'vue-router' import App from '../App.vue' // import HomePage from '../components/HomePage.vue' const routes = [ { path: '/', component: () => import('../views/AILogin.vue') }, // 首页 { path: '/home', component: () => import('../components/HomePage.vue') }, // 智能课 { path: '/ai-general-course', component: () => import('../views/AIGeneralCourse.vue') }, // AI实验室 { path: '/ai-laboratory', component: () => import('../views/AILaboratory.vue') }, // 智能绘画 { path: '/ai-painting', component: () => import('../views/AIPainting.vue') }, // 智能问答 { path: '/ai-questions', component: () => import('../views/AIQuestions.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