fix(测试计划): 执行脑图-修复没有执行权限点击步骤描述有弹窗的缺陷

This commit is contained in:
teukkk 2024-08-08 16:14:57 +08:00 committed by 刘瑞斌
parent 99ee96da02
commit 9842103d3e
1 changed files with 5 additions and 1 deletions

View File

@ -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);