fix(用例脑图): 前置条件无子节点

This commit is contained in:
baiqi 2024-08-14 17:11:09 +08:00 committed by 刘瑞斌
parent a40fcf5528
commit 1021bb4c56
1 changed files with 0 additions and 3 deletions

View File

@ -429,9 +429,6 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss
) { ) {
// 当前节点是步骤描述或文本描述,且没有子节点,则默认添加一个预期结果 // 当前节点是步骤描述或文本描述,且没有子节点,则默认添加一个预期结果
insertSpecifyNode('AppendChildNode', value || stepExpectTag); insertSpecifyNode('AppendChildNode', value || stepExpectTag);
} else if (node.data?.resource?.includes(prerequisiteTag) && (!node.children || node.children.length === 0)) {
// 当前节点是前置操作,则默认添加一个文本节点
execInert('AppendChildNode');
} else if ( } else if (
(!node.data?.resource || node.data?.resource?.length === 0) && (!node.data?.resource || node.data?.resource?.length === 0) &&
(!node.parent?.data?.resource || node.parent?.data?.resource?.length === 0) (!node.parent?.data?.resource || node.parent?.data?.resource?.length === 0)