fix(测试跟踪): 脑图保存临时节点后,部分节点没保存成功
--bug=1015426 --user=陈建星 【测试跟踪】github#15841,未设置标签,点击保存后,用例全没了 https://www.tapd.cn/55049933/s/1213457
This commit is contained in:
parent
b5ec329860
commit
74e0788ee2
|
@ -398,12 +398,13 @@ name: "TestCaseMinder",
|
|||
buildExtraNode(data, parent, root) {
|
||||
if (data.type !== 'node' && data.type !== 'tmp' && parent && isModuleNodeData(parent) && data.changed === true) {
|
||||
// 保存额外信息,只保存模块下的一级子节点
|
||||
let nodes = this.saveExtraNode[parent.id];
|
||||
let pId = parent.newId ? parent.newId : parent.id;
|
||||
let nodes = this.saveExtraNode[pId];
|
||||
if (!nodes) {
|
||||
nodes = [];
|
||||
}
|
||||
nodes.push(JSON.stringify(this._buildExtraNode(root)));
|
||||
this.saveExtraNode[parent.newId ? parent.newId : parent.id] = nodes;
|
||||
this.saveExtraNode[pId] = nodes;
|
||||
}
|
||||
},
|
||||
validate(parent, data) {
|
||||
|
|
Loading…
Reference in New Issue