src/router/index.js
@@ -1,4 +1,4 @@ import { createMemoryHistory, createRouter } from 'vue-router'; import { createWebHashHistory, createRouter } from 'vue-router'; import Layout from '@/layout/index.vue'; @@ -24,7 +24,16 @@ }, ] }, // 在线培训 { path: '/train', component: () => import('@/views/train/index.vue'), }, // 会议 { path: '/meet', component: () => import('@/views/meet/index.vue'), }, // 考试列表 { path: '/exam-list', @@ -44,7 +53,7 @@ ]; const router = createRouter({ history: createMemoryHistory(), history: createWebHashHistory(), routes, });