refactor(测试计划): 脑图执行用例-修改执行后处理实际结果节点的逻辑

This commit is contained in:
teukkk 2024-08-29 17:38:17 +08:00 committed by Craftsman
parent a2cf676081
commit ca8d95f9a6
2 changed files with 10 additions and 5 deletions

View File

@ -315,8 +315,8 @@
.arco-select-view-disabled,
.arco-textarea-disabled,
.arco-input-disabled {
border-color: var(--color-text-n8) !important;
background-color: var(--color-text-n8) !important;
border-color: var(--color-text-n9) !important;
background-color: var(--color-text-n9) !important;
}
.arco-textarea-disabled {
.arco-textarea {

View File

@ -555,10 +555,15 @@
item.data?.resource?.includes(actualResultTag)
);
if (actualResultNode) {
actualResultNode.setData('text', content ?? '').render();
} else {
if (content.length) {
actualResultNode.setData('text', content).render();
} else {
//
window.minder.removeNode(actualResultNode);
}
} else if (content.length) {
actualResultNode = createNode(
{ resource: [actualResultTag], text: content ?? '', id: `actualResult-${node.data?.id}` },
{ resource: [actualResultTag], text: content, id: `actualResult-${node.data?.id}` },
node
);
handleRenderNode(node, [actualResultNode]);