From 43123ce04fb5b438274f021a84369155881088ef Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 17 Jun 2021 17:59:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=84=91=E5=9B=BE=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E8=8A=82=E7=82=B9=E6=8A=A5=E9=94=99=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/common/minder/TestCaseMinder.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index e3c8596ec5..848bc45286 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -128,6 +128,11 @@ name: "TestCaseMinder", this.$error(tip) throw new Error(tip); } + if (data.id === null) { + let tip = '脑图编辑无法创建模块:' + data.text + ''; + this.$error(tip) + throw new Error(tip); + } if (root.children) { root.children.forEach((childNode) => { this.buildSaveCase(childNode, saveCases, deleteCases, root.data);