36 lines
846 B
TypeScript
36 lines
846 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
import { REDIRECT_ROUTE_NAME } from '@/router/constants';
|
|
|
|
// export const REDIRECT_MAIN: RouteRecordRaw = {
|
|
// path: '/redirect',
|
|
// name: 'redirect',
|
|
// meta: {
|
|
// requiresAuth: false,
|
|
// requireLogin: false,
|
|
// hideInMenu: true,
|
|
// },
|
|
// children: [
|
|
// {
|
|
// path: '/redirect/:path',
|
|
// name: REDIRECT_ROUTE_NAME,
|
|
// component: () => import('@/layouts/Basic.vue'),
|
|
// meta: {
|
|
// requiresAuth: false,
|
|
// requireLogin: false,
|
|
// hideInMenu: true,
|
|
// },
|
|
// },
|
|
// ],
|
|
// };
|
|
|
|
export const NOT_FOUND_ROUTE: RouteRecordRaw = {
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'notFound',
|
|
component: () => import('@/layouts/NotFound.vue'),
|
|
meta: {
|
|
requiresAuth: false,
|
|
hideInMenu: true,
|
|
hideSidebar: true,
|
|
},
|
|
};
|