mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-08 07:22:27 +08:00
46 lines
926 B
TypeScript
46 lines
926 B
TypeScript
import { ErrorPage, RedirectName, Layout } from '@/router/constant';
|
|
import { RouteRecordRaw } from 'vue-router';
|
|
|
|
// 404 on a page
|
|
export const ErrorPageRoute: RouteRecordRaw = {
|
|
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: RouteRecordRaw = {
|
|
path: '/redirect',
|
|
name: RedirectName,
|
|
component: Layout,
|
|
meta: {
|
|
title: RedirectName,
|
|
hideBreadcrumb: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: '/redirect/:path(.*)',
|
|
name: RedirectName,
|
|
component: () => import('@/views/redirect/index.vue'),
|
|
meta: {
|
|
title: RedirectName,
|
|
hideBreadcrumb: true,
|
|
},
|
|
},
|
|
],
|
|
};
|