File size: 1,157 Bytes
d85edb8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;