From 4756ebe5cd7f236eac6d45dbe7a609f6a8f14d68 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 19 六月 2024 11:05:18 +0800
Subject: [PATCH] fix(考试):修改单选取消选择
---
src/router/index.js | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 726610c..5964487 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: '/index'
+ 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,
});
--
Gitblit v1.8.0