fix: 脑图复制模块节点报错报错

This commit is contained in:
chenjianxing 2021-06-17 17:59:43 +08:00 committed by jianxing
parent bbdd31f4d9
commit 43123ce04f
1 changed files with 5 additions and 0 deletions

View File

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