fix(测试跟踪): 脑图模块节点拖拽到临时节点之下保存后出现用例丢失

--bug=1021999 --user=陈建星 【测试跟踪】github#21368,用例在脑图模式下,将已经带有case的模块B1拖动到新建的非模块脑图分支B2下保存,会导致B1下的用例丢失 https://www.tapd.cn/55049933/s/1357950
This commit is contained in:
chenjianxing 2023-03-31 10:37:39 +08:00 committed by jianxing
parent c9158d3c21
commit e141d71f2a
1 changed files with 4 additions and 1 deletions

View File

@ -659,7 +659,10 @@ export default {
if (node.children) {
nodeData.children = [];
node.children.forEach(item => {
if (!isCaseNodeData(item.data) && !isModuleNodeData(item.data) && item.data.type !== 'tmp') {
//
nodeData.children.push(this._buildExtraNode(item));
}
});
}
data.isExtraNode = true;