@@ -23,28 +23,28 @@ export const routeManage = [
23
23
component : Layout ,
24
24
redirect : '/api_excel/index' ,
25
25
name : 'Excel-List' ,
26
- meta : { title : '批量测试管理' , icon : 'ico-table' , role : Admin } ,
26
+ meta : { title : '批量测试管理' , icon : 'ico-table' , roles : [ Super , Admin ] } ,
27
27
children : [
28
28
{ path : '/api_excel/edit/:id' , name : 'EditExcel' , component : ( ) => import ( '@/views/api_excel/edit' ) , hidden : true } ,
29
29
{
30
30
path : '/api_excel/add' ,
31
31
name : 'AddExcel' ,
32
32
component : ( ) => import ( '@/views/api_excel/add' ) ,
33
- meta : { title : '上传测试' , icon : 'excel' , role : Admin }
33
+ meta : { title : '上传测试' , icon : 'excel' , roles : [ Super , Admin ] }
34
34
} ,
35
35
{
36
36
path : '/api_excel/index' ,
37
37
name : 'Excel' ,
38
38
component : ( ) => import ( '@/views/api_excel/index' ) ,
39
- meta : { title : '测试管理' , icon : 'ico-aliyun' , role : Admin }
39
+ meta : { title : '测试管理' , icon : 'ico-aliyun' , roles : [ Super , Admin ] }
40
40
} ,
41
41
{ path : '/api_param/add' , name : 'AddApiParam' , component : ( ) => import ( '@/views/api_param/add' ) , hidden : true } ,
42
42
{ path : '/api_param/edit/:id' , name : 'EditApiParam' , component : ( ) => import ( '@/views/api_param/edit' ) , hidden : true } ,
43
43
{
44
44
path : '/api_param/index' ,
45
45
name : 'ApiParam' ,
46
46
component : ( ) => import ( '@/views/api_param/index' ) ,
47
- meta : { title : '接口列表' , icon : 'api' , role : Admin }
47
+ meta : { title : '接口列表' , icon : 'api' , roles : [ Super , Admin ] }
48
48
}
49
49
]
50
50
}
@@ -58,31 +58,31 @@ export const routerAdmin = [
58
58
component : Layout ,
59
59
redirect : '/category/index' ,
60
60
name : 'Category-Nav' ,
61
- meta : { title : '栏目菜单' , icon : 'category' , role : Super } ,
61
+ meta : { title : '栏目菜单' , icon : 'category' , roles : [ Super ] } ,
62
62
children : [
63
63
{ path : '/category/add' , name : 'AddCategory' , component : ( ) => import ( '@/views/category/add' ) , meta : { title : '添加栏目' } , hidden : true } ,
64
64
{ path : '/category/edit/:id' , name : 'EditCategory' , component : ( ) => import ( '@/views/category/edit' ) , hidden : true } ,
65
65
{
66
66
path : '/category/index' ,
67
67
name : 'Category' ,
68
68
component : ( ) => import ( '@/views/category/index' ) ,
69
- meta : { title : '栏目管理' , icon : 'ico-category' , role : Super }
69
+ meta : { title : '栏目管理' , icon : 'ico-category' , roles : [ Super ] }
70
70
} ,
71
71
{ path : '/nav/add' , name : 'AddNav' , component : ( ) => import ( '@/views/nav/add' ) , hidden : true } ,
72
72
{ path : '/nav/edit/:id' , name : 'EditNav' , component : ( ) => import ( '@/views/nav/edit' ) , hidden : true } ,
73
73
{
74
74
path : '/nav' ,
75
75
name : 'Nav' ,
76
76
component : ( ) => import ( '@/views/nav' ) ,
77
- meta : { title : '导航管理' , icon : 'nav' , role : Super }
77
+ meta : { title : '导航管理' , icon : 'nav' , roles : [ Super ] }
78
78
} ,
79
79
{ path : '/tag/add' , name : 'AddTag' , component : ( ) => import ( '@/views/tag/add' ) , meta : { title : '添加标签' } , hidden : true } ,
80
80
{ path : '/tag/edit/:id' , name : 'EditTag' , component : ( ) => import ( '@/views/tag/edit' ) , hidden : true } ,
81
81
{
82
82
path : '/tag' ,
83
83
name : 'Tag' ,
84
84
component : ( ) => import ( '@/views/tag/index' ) ,
85
- meta : { title : '标签列表' , icon : 'tag' , role : Super }
85
+ meta : { title : '标签列表' , icon : 'tag' , roles : [ Super ] }
86
86
}
87
87
]
88
88
} ,
@@ -92,20 +92,20 @@ export const routerAdmin = [
92
92
component : Layout ,
93
93
// redirect: '/article',
94
94
name : 'Article-List' ,
95
- meta : { title : '文章管理' , icon : 'article' , role : Super } ,
95
+ meta : { title : '文章管理' , icon : 'article' , roles : [ Super ] } ,
96
96
children : [
97
97
{ path : '/article/edit/:id' , name : 'EditArticle' , component : ( ) => import ( '@/views/article/edit' ) , hidden : true } ,
98
98
{
99
99
path : '/article/index' ,
100
100
name : 'Article' ,
101
101
component : ( ) => import ( '@/views/article/index' ) ,
102
- meta : { title : '文章管理' , icon : 'ico-article' , role : Super }
102
+ meta : { title : '文章管理' , icon : 'ico-article' , roles : [ Super ] }
103
103
} ,
104
104
{
105
105
path : '/article/add' ,
106
106
name : 'AddArticle' ,
107
107
component : ( ) => import ( '@/views/article/add' ) ,
108
- meta : { title : '添加文章' , icon : 'add' , role : Super }
108
+ meta : { title : '添加文章' , icon : 'add' , roles : [ Super ] }
109
109
}
110
110
]
111
111
} ,
@@ -115,7 +115,7 @@ export const routerAdmin = [
115
115
component : Layout ,
116
116
redirect : '/task' ,
117
117
name : '公交' ,
118
- meta : { title : '公交管理' , icon : 'bus' , role : Super } ,
118
+ meta : { title : '公交管理' , icon : 'bus' , roles : [ Super ] } ,
119
119
children : [
120
120
{ path : '/task/search' , name : 'search' , component : ( ) => import ( '@/views/task/search' ) , hidden : true } ,
121
121
{ path : '/task/newBus' , name : 'NewBus' , component : ( ) => import ( '@/views/task/newBus' ) , hidden : true } ,
@@ -124,27 +124,27 @@ export const routerAdmin = [
124
124
path : '/task' ,
125
125
name : '定时任务' ,
126
126
component : ( ) => import ( '@/views/task/index' ) ,
127
- meta : { title : '定时任务' , icon : 'task' , role : Super }
127
+ meta : { title : '定时任务' , icon : 'task' , roles : [ Super ] }
128
128
} ,
129
129
{ path : 'lines/add' , name : 'linesAdd' , component : ( ) => import ( '@/views/lines/add' ) , hidden : true } ,
130
130
{ path : 'lines/edit/:id' , name : 'linesEdit' , component : ( ) => import ( '@/views/lines/edit' ) , hidden : true } ,
131
131
{
132
132
path : 'lines' ,
133
133
name : '公交列表' ,
134
134
component : ( ) => import ( '@/views/lines/index' ) ,
135
- meta : { title : '公交列表' , icon : 'table' , role : Super }
135
+ meta : { title : '公交列表' , icon : 'table' , roles : [ Super ] }
136
136
} ,
137
137
{
138
138
path : 'config' ,
139
139
name : '配置管理' ,
140
140
component : ( ) => import ( '@/views/lines/index' ) ,
141
- meta : { title : '配置列表' , icon : 'table' , role : Super }
141
+ meta : { title : '配置列表' , icon : 'table' , roles : [ Super ] }
142
142
} ,
143
143
{
144
144
path : 'tree' ,
145
145
name : 'Tree' ,
146
146
component : ( ) => import ( '@/views/tree/index' ) ,
147
- meta : { title : 'Tree' , icon : 'tree' , role : Super } ,
147
+ meta : { title : 'Tree' , icon : 'tree' , roles : [ Super ] } ,
148
148
hidden : true
149
149
}
150
150
]
@@ -155,7 +155,7 @@ export const routerAdmin = [
155
155
component : Layout ,
156
156
redirect : '/user' ,
157
157
name : '权限' ,
158
- meta : { title : '权限管理' , icon : 'auth' , role : Super } ,
158
+ meta : { title : '权限管理' , icon : 'auth' , roles : [ Super ] } ,
159
159
children : [
160
160
{ path : 'index' , name : 'userIndex' , component : ( ) => import ( '@/views/user/index' ) , hidden : true } ,
161
161
{ path : 'password' , name : 'userPassword' , component : ( ) => import ( '@/views/user/password' ) , hidden : true } ,
@@ -165,24 +165,24 @@ export const routerAdmin = [
165
165
path : '/user' ,
166
166
name : '用户管理' ,
167
167
component : ( ) => import ( '@/views/user/index' ) ,
168
- meta : { title : '用户列表' , icon : 'user' , role : Super }
168
+ meta : { title : '用户列表' , icon : 'user' , roles : [ Super ] }
169
169
} ,
170
170
{ path : '/permission/add' , name : 'AddPermission' , component : ( ) => import ( '@/views/permission/add' ) , hidden : true } ,
171
171
{ path : '/permission/edit/:id' , name : 'EditPermission' , component : ( ) => import ( '@/views/permission/edit' ) , hidden : true } ,
172
172
{
173
173
path : '/permission' ,
174
174
name : '权限列表' ,
175
175
component : ( ) => import ( '@/views/permission/index' ) ,
176
- meta : { title : '权限列表' , icon : 'permission' , role : Super }
176
+ meta : { title : '权限列表' , icon : 'permission' , roles : [ Super ] }
177
177
} ,
178
178
179
- { path : '/role/add' , name : 'AddRole ' , component : ( ) => import ( '@/views/role/add' ) , hidden : true } ,
180
- { path : '/role/edit/:id' , name : 'EditRole ' , component : ( ) => import ( '@/views/role/edit' ) , hidden : true } ,
179
+ { path : '/role/add' , name : 'Addroles ' , component : ( ) => import ( '@/views/role/add' ) , hidden : true } ,
180
+ { path : '/role/edit/:id' , name : 'Editroles ' , component : ( ) => import ( '@/views/role/edit' ) , hidden : true } ,
181
181
{
182
182
path : '/role' ,
183
183
name : '角色管理' ,
184
184
component : ( ) => import ( '@/views/role/index' ) ,
185
- meta : { title : '角色管理' , icon : 'role ' , role : Super }
185
+ meta : { title : '角色管理' , icon : 'roles ' , roles : [ Super ] }
186
186
}
187
187
]
188
188
}
0 commit comments