fix(测试跟踪): 脑图模块节点拖拽到临时节点之下保存后出现用例丢失
--bug=1021999 --user=陈建星 【测试跟踪】github#21368,用例在脑图模式下,将已经带有case的模块B1拖动到新建的非模块脑图分支B2下保存,会导致B1下的用例丢失 https://www.tapd.cn/55049933/s/1357950
This commit is contained in:
parent
c9158d3c21
commit
e141d71f2a
|
@ -659,7 +659,10 @@ export default {
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
nodeData.children = [];
|
nodeData.children = [];
|
||||||
node.children.forEach(item => {
|
node.children.forEach(item => {
|
||||||
|
if (!isCaseNodeData(item.data) && !isModuleNodeData(item.data) && item.data.type !== 'tmp') {
|
||||||
|
// 子节点是临时节点才解析
|
||||||
nodeData.children.push(this._buildExtraNode(item));
|
nodeData.children.push(this._buildExtraNode(item));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
data.isExtraNode = true;
|
data.isExtraNode = true;
|
||||||
|
|
Loading…
Reference in New Issue