fix(接口测试): 修复场景拖拽自定义步骤到别的步骤下,点击步骤,前端报错的缺陷

This commit is contained in:
wxg0103 2023-04-21 19:21:46 +08:00 committed by wxg0103
parent 0df934d20e
commit ec6031c4df
1 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,8 @@ export default {
if (this.node.parent && this.node.parent.data && this.node.parent.data.length > 1) {
this.request.projectId = getCurrentProjectID();
}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) {