Files
Situation-Awareness-Platfor…/src/router/config/error.ts
2025-03-12 18:41:20 +08:00

53 lines
1.0 KiB
TypeScript

import DefaultLayout from '@/layouts/DefaultLayout/index.vue';
export default [
{
path: '/',
component: DefaultLayout,
children: [
{
path: '404',
name: '404',
component: () => import('@/views/ErrorPage/index.vue'),
meta: {
title: '404',
hasMobile: true
}
},
{
path: '403',
name: '403',
component: () => import('@/views/ErrorPage/index.vue'),
meta: {
title: '403',
hasMobile: true
}
},
{
path: '503',
name: '503',
component: () => import('@/views/ErrorPage/index.vue'),
meta: {
title: '503',
hasMobile: true
}
}
]
},
{
path: '/:pathMatch(.*)*',
component: DefaultLayout,
children: [
{
path: '',
name: 'notFound',
component: () => import('@/views/ErrorPage/index.vue'),
meta: {
title: '404',
hasMobile: true
}
}
]
}
];