src/router/index.js
@@ -5,8 +5,9 @@ const routes = [ { path: '/', redirect: '/index' redirect: '/exam' }, { 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({