import { createRouter, createWebHistory } from 'vue-router'; import ChatInterface from './components/ChatInterface.vue'; import InternSelection from './components/InternSelection.vue'; import DecisionList from './components/DecisionList.vue'; import UserLogin from './components/UserLogin.vue'; import DecisionAfter from './components/DecisionAfter.vue'; import SurfacePro816 from './components/SurfacePro816.vue'; const routes = [ { path: '/', component: UserLogin }, // 默认首页显示 UserLogin { path: '/decision-list', component: DecisionList, name: 'decision-list' }, // 路由到 DecisionList 页面 { path: '/chat-interface', component: ChatInterface, name: 'chat-interface' }, // 路由到 ChatInterface 页面 { path: '/result', component: InternSelection, name: 'result' }, // 路由到 InternSelection 页面 { path: '/decision-after', component: DecisionAfter, name: 'decision-after' }, { path: '/surface-pro-816', component: SurfacePro816, name: 'surface-pro-816' },// 路由到 DecisionAfter 页面 ]; const router = createRouter({ history: createWebHistory(), routes, }); export default router;