refactor: 无权页面跳转401页面
Former-commit-id: ccf20a6e0e55e451fc13629e7fae0abc78d8cf7b
This commit is contained in:
1 parent
19b3a2c090
commit
4f0851c6e3
2 files changed
+9
-8
No files matched your search
+7
-6
@@ -27,11 +27,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
|
||||
component: () => import('@/views/error-page/404.vue'),
|
||||
meta: { hidden: true }
|
||||
},
|
||||
{
|
||||
path: '/401',
|
||||
component: () => import('@/views/error-page/401.vue'),
|
||||
meta: { hidden: true }
|
||||
},
|
||||
|
||||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
@@ -42,7 +38,12 @@ export const constantRoutes: Array<RouteRecordRaw> = [
|
||||
component: () => import('@/views/dashboard/index.vue'),
|
||||
name: 'Dashboard',
|
||||
meta: { title: 'dashboard', icon: 'homepage', affix: true }
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '401',
|
||||
component: () => import('@/views/error-page/401.vue'),
|
||||
meta: { hidden: true }
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user