| | |
| | | import { createMemoryHistory, createRouter } from 'vue-router'; |
| | | import { createWebHashHistory, createRouter } from 'vue-router'; |
| | | |
| | | import Layout from '@/layout/index.vue'; |
| | | |
| | | const routes = [ |
| | | { |
| | | path: '/', |
| | | redirect: '/exam' |
| | | redirect: '/index' |
| | | }, |
| | | |
| | | { |
| | |
| | | }, |
| | | ] |
| | | }, |
| | | |
| | | // 在线培训 |
| | | { |
| | | path: '/train', |
| | | component: () => import('@/views/train/index.vue'), |
| | | }, |
| | | // 会议 |
| | | { |
| | | path: '/meet', |
| | | component: () => import('@/views/meet/index.vue'), |
| | | }, |
| | | // 考试列表 |
| | | { |
| | | path: '/exam-list', |
| | |
| | | ]; |
| | | |
| | | const router = createRouter({ |
| | | history: createMemoryHistory(), |
| | | history: createWebHashHistory(), |
| | | routes, |
| | | }); |
| | | |