From 6c34d8df858b0c795dd06da0962c22f9d1c40bd2 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期四, 13 六月 2024 14:50:48 +0800 Subject: [PATCH] feat(在线培训):添加在线培训流程 --- src/router/index.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 91a47a3..802dfd4 100644 --- a/src/router/index.js +++ b/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: '/index' }, { @@ -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, }); -- Gitblit v1.8.0