ZhangXianQiang
2024-06-19 4a91e1c8f8cc2b9363b938630d8148f9cbef3c4a
src/router/index.js
@@ -1,11 +1,11 @@
import { createMemoryHistory, createRouter } from 'vue-router';
import { createWebHashHistory, createRouter } from 'vue-router';
import Layout from '@/layout/index.vue';
const routes = [
  {
    path: '/',
    redirect: '/exam'
    redirect: '/login'
  },
  {
@@ -24,7 +24,21 @@
      },
    ]
  },
  // 登录
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
  },
  // 在线培训
  {
    path: '/train',
    component: () => import('@/views/train/index.vue'),
  },
  // 会议
  {
    path: '/meet',
    component: () => import('@/views/meet/index.vue'),
  },
  // 考试列表
  {
    path: '/exam-list',
@@ -44,7 +58,7 @@
];
const router = createRouter({
  history: createMemoryHistory(),
  history: createWebHashHistory(),
  routes,
});