From 9842103d3e39ef6b5f2599f6f2dee6a6387eb90d Mon Sep 17 00:00:00 2001 From: teukkk Date: Thu, 8 Aug 2024 16:14:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=84=91=E5=9B=BE-=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=89=A7=E8=A1=8C=E6=9D=83=E9=99=90=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=AD=A5=E9=AA=A4=E6=8F=8F=E8=BF=B0=E6=9C=89=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/ms-minders/testPlanFeatureCaseMinder/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/business/ms-minders/testPlanFeatureCaseMinder/index.vue b/frontend/src/components/business/ms-minders/testPlanFeatureCaseMinder/index.vue index 88ae71c77a..1f77bd825c 100644 --- a/frontend/src/components/business/ms-minders/testPlanFeatureCaseMinder/index.vue +++ b/frontend/src/components/business/ms-minders/testPlanFeatureCaseMinder/index.vue @@ -767,7 +767,11 @@ } // 点步骤描述下的【步骤描述/预期结果/实际结果】标签 - if ([actualResultTag, stepTag, stepExpectTag].some((item) => node.data?.resource?.includes(item))) { + if ( + [actualResultTag, stepTag, stepExpectTag].some((item) => node.data?.resource?.includes(item)) && + props.canEdit && + hasAnyPermission(['PROJECT_TEST_PLAN:READ+EXECUTE']) + ) { caseNodeAboveSelectStep.value = getCaseNodeWithResource(node, stepTag); if (caseNodeAboveSelectStep.value?.data?.id) { getStepData(caseNodeAboveSelectStep.value.data.id);