From e141d71f2a12e18cf113405c33c859079e0a5f4d Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 31 Mar 2023 10:37:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E6=A8=A1=E5=9D=97=E8=8A=82=E7=82=B9=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E5=88=B0=E4=B8=B4=E6=97=B6=E8=8A=82=E7=82=B9=E4=B9=8B?= =?UTF-8?q?=E4=B8=8B=E4=BF=9D=E5=AD=98=E5=90=8E=E5=87=BA=E7=8E=B0=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021999 --user=陈建星 【测试跟踪】github#21368,用例在脑图模式下,将已经带有case的模块B1拖动到新建的非模块脑图分支B2下保存,会导致B1下的用例丢失 https://www.tapd.cn/55049933/s/1357950 --- .../frontend/src/business/common/minder/TestCaseMinder.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue index 4d1f27cf0d..a24cde8ba0 100644 --- a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue +++ b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue @@ -659,7 +659,10 @@ export default { if (node.children) { nodeData.children = []; node.children.forEach(item => { - nodeData.children.push(this._buildExtraNode(item)); + if (!isCaseNodeData(item.data) && !isModuleNodeData(item.data) && item.data.type !== 'tmp') { + // 子节点是临时节点才解析 + nodeData.children.push(this._buildExtraNode(item)); + } }); } data.isExtraNode = true;