fix(接口测试): 修复场景拖拽自定义步骤到别的步骤下,点击步骤,前端报错的缺陷
This commit is contained in:
parent
0df934d20e
commit
ec6031c4df
|
@ -277,7 +277,8 @@ export default {
|
||||||
if (this.node.parent && this.node.parent.data && this.node.parent.data.length > 1) {
|
if (this.node.parent && this.node.parent.data && this.node.parent.data.length > 1) {
|
||||||
this.request.projectId = getCurrentProjectID();
|
this.request.projectId = getCurrentProjectID();
|
||||||
}else {
|
}else {
|
||||||
this.request.projectId = this.node.parent.data[0].projectId;
|
this.request.projectId =
|
||||||
|
this.node.parent.data instanceof Array ? this.node.parent.data[0].projectId : this.node.parent.data.projectId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.currentScenario) {
|
if (this.currentScenario) {
|
||||||
|
|
Loading…
Reference in New Issue