-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
156 lines (155 loc) · 3.43 KB
/
.umirc.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
import { defineConfig } from '@umijs/max';
export default defineConfig({
routes: [
{
path: '/',
redirect: '/login',
},
{
path: '/login',
component: 'login/view',
layout: false,
},
{
name: '首页',
path: '/home',
component: 'home/view',
},
{
name: '采集设备',
path: '/devices',
component: 'device/view',
},
{
name: '内容图库',
path: '/gallery',
component: 'gallery/view',
},
{
name: '向上级联',
path: '/upward/cascade',
component: 'cascade/upward/view',
},
{
name: '上级订阅',
path: '/upward/cascade/subscribes',
component: 'cascade/upward/subscribes/view',
hideInMenu: true,
},
{
name: '上报记录',
path: '/upward/cascade/reporting',
component: 'cascade/upward/reporting/view',
hideInMenu: true,
},
{
name: '设备共享',
path: '/upward/cascade/device/:platform_id',
component: 'cascade/upward/device/view',
hideInMenu: true,
},
{
name: '下级平台',
path: '/downward/cascade',
component: 'cascade/downward/view',
},
{
name: '设备清单',
path: '/downward/cascade/checklist/:device_id',
component: 'cascade/downward/checklist/view',
hideInMenu: true,
},
{
name: '订阅内容',
path: '/downward/cascade/subscribes',
component: 'cascade/downward/subscribes/view',
hideInMenu: true,
},
{
name: '下级布控',
path: '/downward/cascade/dispositions',
component: 'cascade/downward/dispositions/view',
hideInMenu: true,
},
{
name: '通知记录',
path: '/downward/cascade/subscribes/notification',
component: 'cascade/downward/notification/view',
hideInMenu: true,
},
{
name: '系统设置',
path: '/system',
routes: [
{
path: '/system',
redirect: '/system/dicts',
},
{
path: '/system/dicts',
component: 'system/dict/view',
name: '字典管理',
},
{
name: '资源管理',
path: '/system/resource',
component: 'system/resource/view',
},
// {
// name: '系统信息',
// path: '/system/info',
// component: 'system/info/view',
// },
{
name: '定时任务',
path: '/system/cron',
component: 'system/cron/view',
},
{
name: '导入记录',
path: '/system/importhistory',
component: 'system/import/view',
},
{
name: '关于我们',
path: '/system/about',
component:'system/about/view',
},
],
},
{
name: '修改密码',
path: '/user/edit',
component: 'user/edit/view',
hideInMenu: true,
},
{
path: '/404',
component: '404',
},
],
antd: {},
reactQuery: {},
access: {},
model: {},
initialState: {},
request: {},
publicPath: '/admin/',
history: { type: 'hash' },
layout: {
title: '',
},
define: {
'process.env': {
PUBLIC_PATH: '/admin/',
SOME_KEY: 'value',
WEB_VERSION: '0.0.1',
BASEURL: '/',
PAGE_TITLE: false, //是否显示页面title
},
},
tailwindcss: {},
fastRefresh: true,
npmClient: 'yarn',
esbuildMinifyIIFE: true,
});