From 6dbfaaba970b50d5269ebfb8365af9e5be3c1d6e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 28 Oct 2021 15:34:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=B4=E6=97=B6=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E4=B8=8B=E5=88=9B=E5=BB=BA=E7=94=A8=E4=BE=8B=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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 95609436ca..1871d0ec87 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -215,6 +215,12 @@ name: "TestCaseMinder", return; } + if (parent.isExtraNode) { + let tip = '无法在临时节点"' + parent.text + '"下创建用例'; + this.$error(tip) + throw new Error(tip); + } + if (data.isExtraNode) { // 如果是临时节点,打上了用例标签,则删除临时节点并新建用例节点 let deleteData = {};