| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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,
- },
- },
- ],
- };
|