feat: Add Error component

This commit is contained in:
kailong321200875
2022-02-19 15:36:18 +08:00
parent 1492f9119a
commit 7411dbc9fd
14 changed files with 16154 additions and 17 deletions

View File

@@ -401,6 +401,43 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
}
}
]
},
{
path: '/error',
component: Layout,
redirect: '/error/404',
name: 'Error',
meta: {
title: t('router.errorPage'),
icon: 'ci:error',
alwaysShow: true
},
children: [
{
path: '404',
component: () => import('@/views/Error/404.vue'),
name: '404',
meta: {
title: '404'
}
},
{
path: '403',
component: () => import('@/views/Error/403.vue'),
name: '403',
meta: {
title: '403'
}
},
{
path: '500',
component: () => import('@/views/Error/500.vue'),
name: '500',
meta: {
title: '500'
}
}
]
}
]