搜索结果列表页面开发
This commit is contained in:
52
src/router/config/error.ts
Normal file
52
src/router/config/error.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user