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]);