fix(测试跟踪): 脑图按层级展开后保存,会创建root节点

--bug=1022243 --user=陈建星 【测试跟踪】脑图模式-展开到用例层级-快捷键复制模块A到模块B下-保存失败 https://www.tapd.cn/55049933/s/1344360
This commit is contained in:
chenjianxing 2023-03-01 17:08:14 +08:00 committed by jianxing
parent 04684c1800
commit 67a8e1378f
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ name: "TestCaseMinder",
if (data.type !== 'tmp' && data.changed) { if (data.type !== 'tmp' && data.changed) {
if (isModuleNodeData(data)) { if (isModuleNodeData(data)) {
if (data.contextChanged) { if (data.contextChanged && data.id !== 'root') {
this.buildSaveModules(root, data, parent); this.buildSaveModules(root, data, parent);
root.children && root.children.forEach(i => { root.children && root.children.forEach(i => {
if (isModuleNode(i)) { if (isModuleNode(i)) {