1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| import type { RouteRecordRaw } from 'vue-router';
| import { REDIRECT_ROUTE_NAME } from '@/router/constants';
|
| export const DEFAULT_LAYOUT = () => import('@/layout/default-layout.vue');
|
| export const REDIRECT_MAIN: RouteRecordRaw = {
| path: '/redirect',
| name: 'redirectWrapper',
| component: DEFAULT_LAYOUT,
| meta: {
| requiresAuth: true,
| hideInMenu: true,
| },
| children: [
| {
| path: '/redirect/:path',
| name: REDIRECT_ROUTE_NAME,
| component: () => import('@/views/redirect/index.vue'),
| meta: {
| requiresAuth: true,
| hideInMenu: true,
| },
| },
| ],
| };
|
| export const NOT_FOUND_ROUTE: RouteRecordRaw = {
| path: '/:pathMatch(.*)*',
| name: 'notFound',
| component: () => import('@/views/not-found/index.vue'),
| };
|
|