feat(projects): add custom route exception

This commit is contained in:
Soybean
2024-01-19 01:24:45 +08:00
parent 4955f1af89
commit b43c925696
8 changed files with 86 additions and 31 deletions

View File

@ -8,6 +8,9 @@ export function setupElegantRouter() {
base: 'src/layouts/base-layout/index.vue',
blank: 'src/layouts/blank-layout/index.vue'
},
customRoutes: {
names: ['exception_403', 'exception_404', 'exception_500']
},
routePathTransformer(routeName, routePath) {
const key = routeName as RouteKey;