|
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
|
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
import { ExceptionEnum } from '/@/enums/exceptionEnum';
const ExceptionPage = () => import('/@/views/sys/exception/Exception');
export default {
layout: {
path: '/exception',
name: 'ExceptionPage',
component: PAGE_LAYOUT_COMPONENT,
redirect: '/exception/404',
meta: {
icon: 'ant-design:exception-outlined',
title: '异常页',
},
},
routes: [
{
path: '/404',
name: 'PageNotFound',
component: ExceptionPage,
props: {
status: ExceptionEnum.PAGE_NOT_FOUND,
},
meta: {
title: '404',
|
|
30
|
afterCloseLoading: true,
|
|
31
32
33
34
35
36
37
38
39
40
41
|
},
},
{
path: '/500',
name: 'ServiceError',
component: ExceptionPage,
props: {
status: ExceptionEnum.ERROR,
},
meta: {
title: '500',
|
|
42
|
afterCloseLoading: true,
|
|
43
44
45
46
47
48
49
50
51
52
53
|
},
},
{
path: '/net-work-error',
name: 'NetWorkError',
component: ExceptionPage,
props: {
status: ExceptionEnum.NET_WORK_ERROR,
},
meta: {
title: '网络错误',
|
|
54
|
afterCloseLoading: true,
|
|
55
56
57
58
59
60
61
62
63
64
65
|
},
},
{
path: '/page-time-out',
name: 'PageTimeOut',
component: ExceptionPage,
props: {
status: ExceptionEnum.PAGE_TIMEOUT,
},
meta: {
title: '页面超时',
|
|
66
|
afterCloseLoading: true,
|
|
67
68
69
70
71
72
73
74
75
76
77
|
},
},
{
path: '/not-data',
name: 'NotData',
component: ExceptionPage,
props: {
status: ExceptionEnum.PAGE_NOT_DATA,
},
meta: {
title: '无数据',
|
|
78
|
afterCloseLoading: true,
|
|
79
80
81
82
|
},
},
],
} as AppRouteModule;
|