Skip to content

Commit 2a23ddb

Browse files
committed
Chore: role add "Customer"
1 parent d3835a1 commit 2a23ddb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

admin/src/router/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import Layout from '@/layout'
3232
*/
3333
const Super = 'Super Administrator'
3434
const Admin = 'Admin'
35+
const Customer = 'Customer'
3536

3637
// 管理一般路由
3738
export const routeAdmin = [
@@ -40,20 +41,20 @@ export const routeAdmin = [
4041
component: Layout,
4142
redirect: '/api_excel/index',
4243
name: 'Excel-List',
43-
meta: { title: '批量测试管理', icon: 'ico-table', roles: [Super, Admin] },
44+
meta: { title: '批量测试管理', icon: 'ico-table', roles: [Super, Admin, Customer] },
4445
children: [
4546
{ path: '/api_excel/edit/:id', name: 'EditExcel', component: () => import('@/views/api_excel/edit'), hidden: true },
4647
{
4748
path: '/api_excel/add',
4849
name: 'AddExcel',
4950
component: () => import('@/views/api_excel/add'),
50-
meta: { title: '上传测试', icon: 'excel', roles: [Super, Admin] }
51+
meta: { title: '上传测试', icon: 'excel', roles: [Super, Admin, Customer] }
5152
},
5253
{
5354
path: '/api_excel/index',
5455
name: 'Excel',
5556
component: () => import('@/views/api_excel/index'),
56-
meta: { title: '测试管理', icon: 'ico-aliyun', roles: [Super, Admin] }
57+
meta: { title: '测试管理', icon: 'ico-aliyun', roles: [Super, Admin, Customer] }
5758
},
5859
{ path: '/api_param/add', name: 'AddApiParam', component: () => import('@/views/api_param/add'), hidden: true },
5960
{ path: '/api_param/edit/:id', name: 'EditApiParam', component: () => import('@/views/api_param/edit'), hidden: true },

0 commit comments

Comments
 (0)