@@ -52,26 +52,26 @@ export const asyncRouterMap = [
52
52
component : Layout ,
53
53
name : 'dashboard' ,
54
54
redirect : '/dashboard/workplace' ,
55
- meta : { title : '仪表盘' , icon : 'dashboard' } ,
55
+ meta : { title : '仪表盘' , icon : 'dashboard' , permission : [ 'dashboard' ] } ,
56
56
children : [
57
57
{
58
58
path : '/dashboard/analysis' ,
59
59
name : 'Analysis' ,
60
60
component : ( ) => import ( '../views/dashboard/Analysis' ) ,
61
- meta : { title : '分析页' , hideHeader : true }
61
+ meta : { title : '分析页' , hideHeader : true , permission : [ 'dashboard' ] }
62
62
} ,
63
63
{
64
64
path : '/dashboard/monitor' ,
65
65
name : 'Monitor' ,
66
66
hidden : true ,
67
67
component : ( ) => import ( '../views/dashboard/Monitor' ) ,
68
- meta : { title : '监控页' , hideHeader : true }
68
+ meta : { title : '监控页' , hideHeader : true , permission : [ 'dashboard' ] }
69
69
} ,
70
70
{
71
71
path : '/dashboard/workplace' ,
72
72
name : 'Workplace' ,
73
73
component : ( ) => import ( '../views/dashboard/Workplace' ) ,
74
- meta : { title : '工作台' }
74
+ meta : { title : '工作台' , permission : [ 'dashboard' ] }
75
75
}
76
76
]
77
77
} ,
@@ -80,25 +80,25 @@ export const asyncRouterMap = [
80
80
component : LayoutBase ,
81
81
name : 'form' ,
82
82
redirect : '/form/base-form' ,
83
- meta : { title : '表单页' , icon : 'form' } ,
83
+ meta : { title : '表单页' , icon : 'form' , permission : [ 'form' ] } ,
84
84
children : [
85
85
{
86
86
path : '/form/base-form' ,
87
87
name : 'BaseForm' ,
88
88
component : ( ) => import ( '../views/form/BasicForm' ) ,
89
- meta : { title : '基础表单' }
89
+ meta : { title : '基础表单' , permission : [ 'form' ] }
90
90
} ,
91
91
{
92
92
path : '/form/step-form' ,
93
93
name : 'StepForm' ,
94
94
component : ( ) => import ( '../views/form/stepForm/StepForm' ) ,
95
- meta : { title : '分步表单' }
95
+ meta : { title : '分步表单' , permission : [ 'form' ] }
96
96
} ,
97
97
{
98
98
path : '/form/advanced-form' ,
99
99
name : 'AdvanceForm' ,
100
100
component : ( ) => import ( '../views/form/advancedForm/AdvancedForm' ) ,
101
- meta : { title : '高级表单' }
101
+ meta : { title : '高级表单' , permission : [ 'form' ] }
102
102
}
103
103
]
104
104
} ,
@@ -107,68 +107,68 @@ export const asyncRouterMap = [
107
107
component : LayoutBase ,
108
108
name : 'list' ,
109
109
redirect : '/list/query-list' ,
110
- meta : { title : '列表页' , icon : 'table' } ,
110
+ meta : { title : '列表页' , icon : 'table' , permission : [ 'table' ] } ,
111
111
children : [
112
112
{
113
113
path : '/list/query-list' ,
114
114
name : 'QueryList' ,
115
115
component : ( ) => import ( '@/views/list/TableList' ) ,
116
- meta : { title : '查询表格' }
116
+ meta : { title : '查询表格' , permission : [ 'table' ] }
117
117
} ,
118
118
{
119
119
path : '/list/edit-table' ,
120
120
name : 'EditList' ,
121
121
component : ( ) => import ( '@/views/list/TableInnerEditList' ) ,
122
- meta : { title : '内联编辑表格' }
122
+ meta : { title : '内联编辑表格' , permission : [ 'table' ] }
123
123
} ,
124
124
{
125
125
path : '/list/role-list' ,
126
126
name : 'RoleList' ,
127
127
component : ( ) => import ( '@/views/list/RoleList' ) ,
128
- meta : { title : '角色列表' }
128
+ meta : { title : '角色列表' , permission : [ 'table' ] }
129
129
} ,
130
130
{
131
131
path : '/list/permission-list' ,
132
132
name : 'PermissionList' ,
133
133
component : ( ) => import ( '@/views/list/PermissionList' ) ,
134
- meta : { title : '权限列表' }
134
+ meta : { title : '权限列表' , permission : [ 'table' ] }
135
135
} ,
136
136
{
137
137
path : '/list/basic-list' ,
138
138
name : 'BasicList' ,
139
139
component : ( ) => import ( '@/views/list/StandardList' ) ,
140
- meta : { title : '标准列表' }
140
+ meta : { title : '标准列表' , permission : [ 'table' ] }
141
141
} ,
142
142
{
143
143
path : '/list/card' ,
144
144
name : 'CardList' ,
145
145
component : ( ) => import ( '@/views/list/CardList' ) ,
146
- meta : { title : '卡片列表' }
146
+ meta : { title : '卡片列表' , permission : [ 'table' ] }
147
147
} ,
148
148
{
149
149
path : '/list/search' ,
150
150
name : 'SearchList' ,
151
151
component : ( ) => import ( '@/views/list/search/SearchLayout' ) ,
152
152
redirect : '/list/search/article' ,
153
- meta : { title : '搜索列表' } ,
153
+ meta : { title : '搜索列表' , permission : [ 'table' ] } ,
154
154
children : [
155
155
{
156
156
path : '/list/search/article' ,
157
157
name : 'SearchArticles' ,
158
158
component : ( ) => import ( '../views/list/TableList' ) ,
159
- meta : { title : '搜索列表(文章)' }
159
+ meta : { title : '搜索列表(文章)' , permission : [ 'table' ] }
160
160
} ,
161
161
{
162
162
path : '/list/search/project' ,
163
163
name : 'SearchProjects' ,
164
164
component : ( ) => import ( '../views/list/TableList' ) ,
165
- meta : { title : '搜索列表(项目)' }
165
+ meta : { title : '搜索列表(项目)' , permission : [ 'table' ] }
166
166
} ,
167
167
{
168
168
path : '/list/search/application' ,
169
169
name : 'SearchApplications' ,
170
170
component : ( ) => import ( '../views/list/TableList' ) ,
171
- meta : { title : '搜索列表(应用)' }
171
+ meta : { title : '搜索列表(应用)' , permission : [ 'table' ] }
172
172
} ,
173
173
]
174
174
} ,
@@ -179,19 +179,19 @@ export const asyncRouterMap = [
179
179
component : Layout ,
180
180
name : 'profile' ,
181
181
redirect : '/profile/basic' ,
182
- meta : { title : '详情页' , icon : 'profile' } ,
182
+ meta : { title : '详情页' , icon : 'profile' , permission : [ 'profile' ] } ,
183
183
children : [
184
184
{
185
185
path : '/profile/basic' ,
186
186
name : 'ProfileBasic' ,
187
187
component : ( ) => import ( '@/views/profile/basic/Index' ) ,
188
- meta : { title : '基础详情页' }
188
+ meta : { title : '基础详情页' , permission : [ 'profile' ] }
189
189
} ,
190
190
{
191
191
path : '/profile/advanced' ,
192
192
name : 'ProfileAdvanced' ,
193
193
component : ( ) => import ( '@/views/profile/advanced/Advanced' ) ,
194
- meta : { title : '高级详情页' }
194
+ meta : { title : '高级详情页' , permission : [ 'profile' ] }
195
195
}
196
196
]
197
197
} ,
@@ -200,13 +200,13 @@ export const asyncRouterMap = [
200
200
component : LayoutBase ,
201
201
name : 'result' ,
202
202
redirect : '/result/success' ,
203
- meta : { title : '结果页' , icon : 'check-circle-o' } ,
203
+ meta : { title : '结果页' , icon : 'check-circle-o' , permission : [ 'result' ] } ,
204
204
children : [
205
205
{
206
206
path : '/result/success' ,
207
207
name : 'ResultSuccess' ,
208
208
component : ( ) => import ( /* webpackChunkName: "result" */ '../views/result/Success' ) ,
209
- meta : { title : '成功' , hiddenPageHeader : true }
209
+ meta : { title : '成功' , hiddenPageHeader : true , permission : [ 'result' ] }
210
210
} ,
211
211
{
212
212
path : '/result/fail' ,
@@ -215,7 +215,7 @@ export const asyncRouterMap = [
215
215
// this generates a separate chunk (about.[hash].js) for this route
216
216
// which is lazy-loaded when the route is visited.
217
217
component : ( ) => import ( /* webpackChunkName: "result" */ '../views/result/Error' ) ,
218
- meta : { title : '失败' , hiddenPageHeader : true }
218
+ meta : { title : '失败' , hiddenPageHeader : true , permission : [ 'result' ] }
219
219
}
220
220
]
221
221
} ,
@@ -224,13 +224,13 @@ export const asyncRouterMap = [
224
224
component : Layout ,
225
225
name : 'exception' ,
226
226
redirect : '/exception/403' ,
227
- meta : { title : '异常页' , icon : 'warning' } ,
227
+ meta : { title : '异常页' , icon : 'warning' , permission : [ 'exception' ] } ,
228
228
children : [
229
229
{
230
230
path : '/exception/403' ,
231
231
name : 'Exception403' ,
232
232
component : ( ) => import ( /* webpackChunkName: "fail" */ '../views/exception/403' ) ,
233
- meta : { title : '403' }
233
+ meta : { title : '403' , permission : [ 'exception' ] }
234
234
} ,
235
235
{
236
236
path : '/exception/404' ,
@@ -239,7 +239,7 @@ export const asyncRouterMap = [
239
239
// this generates a separate chunk (about.[hash].js) for this route
240
240
// which is lazy-loaded when the route is visited.
241
241
component : ( ) => import ( /* webpackChunkName: "fail" */ '../views/exception/404' ) ,
242
- meta : { title : '404' }
242
+ meta : { title : '404' , permission : [ 'exception' ] }
243
243
} ,
244
244
{
245
245
path : '/exception/500' ,
@@ -248,59 +248,59 @@ export const asyncRouterMap = [
248
248
// this generates a separate chunk (about.[hash].js) for this route
249
249
// which is lazy-loaded when the route is visited.
250
250
component : ( ) => import ( /* webpackChunkName: "fail" */ '../views/exception/500' ) ,
251
- meta : { title : '500' }
251
+ meta : { title : '500' , permission : [ 'exception' ] }
252
252
}
253
253
]
254
254
} ,
255
255
{
256
256
path : '/account' ,
257
257
component : Layout ,
258
258
name : 'account' ,
259
- meta : { title : '个人页' , icon : 'user' , keepAlive : true } ,
259
+ meta : { title : '个人页' , icon : 'user' , keepAlive : true , permission : [ 'user' ] } ,
260
260
children : [
261
261
{
262
262
path : '/account/center' ,
263
263
name : 'center' ,
264
264
component : ( ) => import ( '@/views/account/center/Index' ) ,
265
- meta : { title : '个人中心' , keepAlive : true }
265
+ meta : { title : '个人中心' , keepAlive : true , permission : [ 'user' ] }
266
266
} ,
267
267
{
268
268
path : '/account/settings' ,
269
269
name : 'settings' ,
270
270
component : ( ) => import ( '@/views/account/settings/Index' ) ,
271
- meta : { title : '个人设置' , hideHeader : true , keepAlive : true } ,
271
+ meta : { title : '个人设置' , hideHeader : true , keepAlive : true , permission : [ 'user' ] } ,
272
272
redirect : '/account/settings/base' ,
273
273
alwaysShow : true ,
274
274
children : [
275
275
{
276
276
path : '/account/settings/base' ,
277
277
name : 'BaseSettings' ,
278
278
component : ( ) => import ( '@/views/account/settings/BaseSetting' ) ,
279
- meta : { title : '基本设置' , hidden : true , keepAlive : true }
279
+ meta : { title : '基本设置' , hidden : true , keepAlive : true , permission : [ 'user' ] }
280
280
} ,
281
281
{
282
282
path : '/account/settings/security' ,
283
283
name : 'SecuritySettings' ,
284
284
component : ( ) => import ( '@/views/account/settings/Security' ) ,
285
- meta : { title : '安全设置' , hidden : true , keepAlive : true }
285
+ meta : { title : '安全设置' , hidden : true , keepAlive : true , permission : [ 'user' ] }
286
286
} ,
287
287
{
288
288
path : '/account/settings/custom' ,
289
289
name : 'CustomSettings' ,
290
290
component : ( ) => import ( '@/views/account/settings/Custom' ) ,
291
- meta : { title : '个性化设置' , hidden : true , keepAlive : true }
291
+ meta : { title : '个性化设置' , hidden : true , keepAlive : true , permission : [ 'user' ] }
292
292
} ,
293
293
{
294
294
path : '/account/settings/binding' ,
295
295
name : 'BindingSettings' ,
296
296
component : ( ) => import ( '@/views/account/settings/Binding' ) ,
297
- meta : { title : '账户绑定' , hidden : true , keepAlive : true }
297
+ meta : { title : '账户绑定' , hidden : true , keepAlive : true , permission : [ 'user' ] }
298
298
} ,
299
299
{
300
300
path : '/account/settings/notification' ,
301
301
name : 'NotificationSettings' ,
302
302
component : ( ) => import ( '@/views/account/settings/Notification' ) ,
303
- meta : { title : '新消息通知' , hidden : true , keepAlive : true }
303
+ meta : { title : '新消息通知' , hidden : true , keepAlive : true , permission : [ 'user' ] }
304
304
} ,
305
305
]
306
306
} ,
0 commit comments