fix: 临时节点下创建用例报错
This commit is contained in:
parent
db92b50838
commit
6dbfaaba97
|
@ -215,6 +215,12 @@ name: "TestCaseMinder",
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parent.isExtraNode) {
|
||||||
|
let tip = '无法在临时节点"' + parent.text + '"下创建用例';
|
||||||
|
this.$error(tip)
|
||||||
|
throw new Error(tip);
|
||||||
|
}
|
||||||
|
|
||||||
if (data.isExtraNode) {
|
if (data.isExtraNode) {
|
||||||
// 如果是临时节点,打上了用例标签,则删除临时节点并新建用例节点
|
// 如果是临时节点,打上了用例标签,则删除临时节点并新建用例节点
|
||||||
let deleteData = {};
|
let deleteData = {};
|
||||||
|
|
Loading…
Reference in New Issue