mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
45 lines
918 B
TypeScript
45 lines
918 B
TypeScript
import type { AppRouteRecordRaw } from '@/router/types';
|
|
import { ErrorPage, RedirectName, Layout } from '@/router/constant';
|
|
|
|
// 404 on a page
|
|
export const ErrorPageRoute: AppRouteRecordRaw = {
|
|
path: '/:path(.*)*',
|
|
name: 'ErrorPage',
|
|
component: Layout,
|
|
meta: {
|
|
title: 'ErrorPage',
|
|
hideBreadcrumb: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: '/:path(.*)*',
|
|
name: 'ErrorPageSon',
|
|
component: ErrorPage,
|
|
meta: {
|
|
title: 'ErrorPage',
|
|
hideBreadcrumb: true,
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export const RedirectRoute: AppRouteRecordRaw = {
|
|
path: '/redirect',
|
|
name: RedirectName,
|
|
component: Layout,
|
|
meta: {
|
|
title: RedirectName,
|
|
},
|
|
children: [
|
|
{
|
|
path: '/redirect/:path(.*)',
|
|
name: RedirectName,
|
|
component: () => import('@/views/redirect/index.vue'),
|
|
meta: {
|
|
title: RedirectName,
|
|
hideBreadcrumb: true,
|
|
},
|
|
},
|
|
],
|
|
};
|