Vben
authored
|
1
2
|
import type { AppRouteRecordRaw } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
|
|
3
4
5
6
7
8
|
import {
REDIRECT_NAME,
LAYOUT,
EXCEPTION_COMPONENT,
PAGE_NOT_FOUND_NAME,
} from '/@/router/constant';
|
Vben
authored
|
9
10
11
12
|
// 404 on a page
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
path: '/:path(.*)*',
|
|
13
|
name: PAGE_NOT_FOUND_NAME,
|
Vben
authored
|
14
15
16
17
|
component: LAYOUT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
|
vben
authored
|
18
|
hideMenu: true,
|
Vben
authored
|
19
20
21
22
|
},
children: [
{
path: '/:path(.*)*',
|
|
23
|
name: PAGE_NOT_FOUND_NAME,
|
Vben
authored
|
24
25
26
27
|
component: EXCEPTION_COMPONENT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
|
|
28
|
hideMenu: true,
|
Vben
authored
|
29
30
31
32
33
34
35
36
37
38
39
40
|
},
},
],
};
export const REDIRECT_ROUTE: AppRouteRecordRaw = {
path: '/redirect',
name: REDIRECT_NAME,
component: LAYOUT,
meta: {
title: REDIRECT_NAME,
hideBreadcrumb: true,
|
vben
authored
|
41
|
hideMenu: true,
|
Vben
authored
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
},
children: [
{
path: '/redirect/:path(.*)',
name: REDIRECT_NAME,
component: () => import('/@/views/sys/redirect/index.vue'),
meta: {
title: REDIRECT_NAME,
hideBreadcrumb: true,
},
},
],
};
export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
path: '/error-log',
|
Vben
authored
|
58
|
name: 'ErrorLog',
|
Vben
authored
|
59
|
component: LAYOUT,
|
|
60
|
redirect: '/error-log/list',
|
Vben
authored
|
61
62
63
|
meta: {
title: 'ErrorLog',
hideBreadcrumb: true,
|
|
64
|
hideChildrenInMenu: true,
|
Vben
authored
|
65
66
67
68
|
},
children: [
{
path: 'list',
|
Vben
authored
|
69
|
name: 'ErrorLogList',
|
Vben
authored
|
70
71
72
73
|
component: () => import('/@/views/sys/error-log/index.vue'),
meta: {
title: t('routes.basic.errorLogList'),
hideBreadcrumb: true,
|
|
74
|
currentActiveMenu: '/error-log',
|
Vben
authored
|
75
76
77
78
|
},
},
],
};
|