From 74e0788ee2745582f0ff400fe81665033ffaccfd Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 27 Jul 2022 13:45:00 +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=E4=BF=9D=E5=AD=98=E4=B8=B4=E6=97=B6=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=90=8E=EF=BC=8C=E9=83=A8=E5=88=86=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=B2=A1=E4=BF=9D=E5=AD=98=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015426 --user=陈建星 【测试跟踪】github#15841,未设置标签,点击保存后,用例全没了 https://www.tapd.cn/55049933/s/1213457 --- .../components/track/common/minder/TestCaseMinder.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 239728711e..0523361826 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -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) {