47 lines
987 B
TypeScript
47 lines
987 B
TypeScript
import { AppRouteRecord } from '@/types/router'
|
|
|
|
export const exceptionRoutes: AppRouteRecord = {
|
|
path: '/exception',
|
|
name: 'Exception',
|
|
component: '/index/index',
|
|
meta: {
|
|
title: 'menus.exception.title',
|
|
icon: 'warning'
|
|
},
|
|
children: [
|
|
{
|
|
path: '300',
|
|
name: 'Exception403',
|
|
component: '/exception/403/index',
|
|
meta: {
|
|
title: 'menus.exception.forbidden',
|
|
keepAlive: true,
|
|
isHideTab: true,
|
|
isFullPage: true
|
|
}
|
|
},
|
|
{
|
|
path: '400',
|
|
name: 'Exception404',
|
|
component: '/exception/404/index',
|
|
meta: {
|
|
title: 'menus.exception.notFound',
|
|
keepAlive: true,
|
|
isHideTab: true,
|
|
isFullPage: true
|
|
}
|
|
},
|
|
{
|
|
path: '500',
|
|
name: 'Exception500',
|
|
component: '/exception/500/index',
|
|
meta: {
|
|
title: 'menus.exception.serverError',
|
|
keepAlive: true,
|
|
isHideTab: true,
|
|
isFullPage: true
|
|
}
|
|
}
|
|
]
|
|
}
|