fix(测试计划): 左侧计划菜单权限控制问题

--bug=1040790 --user=宋昌昌 【测试计划】当用户为系统成员,项目权限为无测试计划创建,删除,执行权限时该用户看不到测试计划模块 https://www.tapd.cn/55049933/s/1517299
This commit is contained in:
song-cc-rock 2024-05-21 11:16:56 +08:00 committed by 刘瑞斌
parent a8dd4799f8
commit 4fec433226
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ const TestPlan: AppRouteRecordRaw = {
icon: 'icon-a-icon_test-tracking_filled1',
order: 2,
hideChildrenInMenu: true,
roles: ['*'],
roles: ['PROJECT_TEST_PLAN:READ', 'PROJECT_TEST_PLAN_REPORT:READ'],
},
children: [
// 测试计划
@ -24,7 +24,7 @@ const TestPlan: AppRouteRecordRaw = {
component: () => import('@/views/test-plan/testPlan/index.vue'),
meta: {
locale: 'menu.testPlan',
roles: ['*'],
roles: ['PROJECT_TEST_PLAN:READ'],
isTopMenu: true,
},
},
@ -34,7 +34,7 @@ const TestPlan: AppRouteRecordRaw = {
component: () => import('@/views/test-plan/report/index.vue'),
meta: {
locale: 'menu.apiTest.report',
roles: ['*'],
roles: ['PROJECT_TEST_PLAN_REPORT:READ'],
isTopMenu: true,
},
},
@ -44,7 +44,7 @@ const TestPlan: AppRouteRecordRaw = {
component: () => import('@/views/test-plan/report/detail/index.vue'),
meta: {
locale: 'menu.apiTest.reportDetail',
roles: ['*'],
roles: ['PROJECT_TEST_PLAN_REPORT:READ'],
breadcrumbs: [
{
name: TestPlanRouteEnum.TEST_PLAN_REPORT,