From 7cf6ca92edaddc86009cdcd5d11ba5cc04830199 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 21 May 2024 16:42:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20tab=E5=90=8D=E7=A7=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/locale/en-US/index.ts | 1 + frontend/src/locale/zh-CN/index.ts | 1 + frontend/src/router/routes/modules/caseManagement.ts | 4 ++-- frontend/src/router/routes/modules/testPlan.ts | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/locale/en-US/index.ts b/frontend/src/locale/en-US/index.ts index 779d91fc2e..1c4b8bf89e 100644 --- a/frontend/src/locale/en-US/index.ts +++ b/frontend/src/locale/en-US/index.ts @@ -54,6 +54,7 @@ export default { 'menu.caseManagement.featureCaseEdit': 'Update Case', 'menu.caseManagement.featureCaseCreateSuccess': 'Create Success', 'menu.caseManagement.caseManagementReview': 'Feature Case Review', + 'menu.caseManagement.caseManagementReviewShort': 'Review', 'menu.caseManagement.caseManagementReviewCreate': 'Create Review', 'menu.caseManagement.caseManagementReviewDetail': 'Review Detail', 'menu.caseManagement.caseManagementReviewDetailCaseDetail': 'Review Case Detail', diff --git a/frontend/src/locale/zh-CN/index.ts b/frontend/src/locale/zh-CN/index.ts index 1ba1481fd1..77349fde68 100644 --- a/frontend/src/locale/zh-CN/index.ts +++ b/frontend/src/locale/zh-CN/index.ts @@ -62,6 +62,7 @@ export default { 'menu.caseManagement.featureCaseEdit': '更新用例', 'menu.caseManagement.featureCaseCreateSuccess': '创建用例成功', 'menu.caseManagement.caseManagementReview': '用例评审', + 'menu.caseManagement.caseManagementReviewShort': '评审', 'menu.caseManagement.caseManagementReviewCreate': '创建评审', 'menu.caseManagement.caseManagementReviewDetail': '评审详情', 'menu.caseManagement.caseManagementReviewDetailCaseDetail': '评审用例详情', diff --git a/frontend/src/router/routes/modules/caseManagement.ts b/frontend/src/router/routes/modules/caseManagement.ts index 78ee9de92e..408617ec1a 100644 --- a/frontend/src/router/routes/modules/caseManagement.ts +++ b/frontend/src/router/routes/modules/caseManagement.ts @@ -23,7 +23,7 @@ const CaseManagement: AppRouteRecordRaw = { name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE, component: () => import('@/views/case-management/caseManagementFeature/index.vue'), meta: { - locale: 'menu.caseManagement.featureCase', + locale: 'menu.caseManagementShort', roles: ['FUNCTIONAL_CASE:READ'], isTopMenu: true, }, @@ -86,7 +86,7 @@ const CaseManagement: AppRouteRecordRaw = { name: CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW, component: () => import('@/views/case-management/caseReview/index.vue'), meta: { - locale: 'menu.caseManagement.caseManagementReview', + locale: 'menu.caseManagement.caseManagementReviewShort', roles: ['CASE_REVIEW:READ'], isTopMenu: true, }, diff --git a/frontend/src/router/routes/modules/testPlan.ts b/frontend/src/router/routes/modules/testPlan.ts index f7bf089bc7..74815e6c3a 100644 --- a/frontend/src/router/routes/modules/testPlan.ts +++ b/frontend/src/router/routes/modules/testPlan.ts @@ -23,7 +23,7 @@ const TestPlan: AppRouteRecordRaw = { name: TestPlanRouteEnum.TEST_PLAN_INDEX, component: () => import('@/views/test-plan/testPlan/index.vue'), meta: { - locale: 'menu.testPlan', + locale: 'menu.testPlanShort', roles: ['PROJECT_TEST_PLAN:READ'], isTopMenu: true, },