|
|
@@ -20,21 +20,27 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
- path: '/main/school',
|
|
|
+ path: 'school',
|
|
|
name: 'school',
|
|
|
component: () => import('@/views/school/index.vue')
|
|
|
},
|
|
|
{
|
|
|
- path: '/main/manager',
|
|
|
+ path: 'manager',
|
|
|
name: 'manager',
|
|
|
component: () => import('@/views/manager/index.vue')
|
|
|
},
|
|
|
{
|
|
|
- path: '/main/examination',
|
|
|
+ path: 'examination',
|
|
|
name: 'examination',
|
|
|
component: () => import('@/views/examination/index.vue')
|
|
|
}
|
|
|
]
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/:pathMatch(.*)*', // 捕获所有未匹配路径
|
|
|
+ name: 'NotFound',
|
|
|
+ component: () => import('../views/login/login.vue') // 未匹配到路由跳转到登录页面
|
|
|
}
|
|
|
]
|
|
|
|