From 1072790993afa47934b8d72cb8b6f113f1ef6930 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期二, 04 六月 2024 15:36:10 +0800 Subject: [PATCH] feat:封装通用header --- src/router/index.js | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 725e29e..eaa2e50 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,8 +5,9 @@ const routes = [ { path: '/', - redirect: '/index' + redirect: '/exam-list' }, + { path: '/', component: Layout, @@ -23,7 +24,17 @@ }, ] }, - + + // 鑰冭瘯鍒楄〃 + { + path: '/exam-list', + component: () => import('@/views/exam-list/index.vue'), + }, + // 鑰冭瘯椤甸潰 + { + path: '/exam', + component: () => import('@/views/exam/index.vue'), + }, ]; const router = createRouter({ -- Gitblit v1.8.0