From 121a04da51156ed8f3b603a0684fd7d95ed2d49a Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Sun, 24 Apr 2022 16:23:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E5=AE=8C=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=86=8D=E6=94=B9=E6=88=90=E7=94=A8=E4=BE=8B=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/common/minder/TestCaseMinder.vue | 2 +- .../business/components/track/common/minder/minderUtils.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index de70c7d03e..28075d7b8c 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -336,7 +336,7 @@ name: "TestCaseMinder", this.throwError(this.$t('test_track.case.minder_all_module_tip')); } - if (parent.isExtraNode) { + if (parent.isExtraNode && !isModuleNodeData(parent)) { this.throwError(this.$t('test_track.case.minder_tem_node_tip', [parent.text])); } diff --git a/frontend/src/business/components/track/common/minder/minderUtils.js b/frontend/src/business/components/track/common/minder/minderUtils.js index 7391a5cb38..0850a5f6b3 100644 --- a/frontend/src/business/components/track/common/minder/minderUtils.js +++ b/frontend/src/business/components/track/common/minder/minderUtils.js @@ -452,6 +452,11 @@ export function handleAfterSave(rootNode) { rootNode.data.deleteChild = null; rootNode.data.changed = false; rootNode.data.contextChanged = false; + if (isModuleNode(rootNode)) { + rootNode.data.type = 'node'; + } else if (isCaseNodeData(rootNode.data)) { + rootNode.data.type = 'case'; + } if (rootNode.children) { for (let i = 0; i < rootNode.children.length; i++) { handleAfterSave(rootNode.children[i]);