fix(场景自动化): 项目ID设置问题

This commit is contained in:
shiziyuan9527 2021-04-01 20:24:31 +08:00 committed by 刘瑞斌
parent 6ead6afb92
commit 9021e0b75a
1 changed files with 3 additions and 2 deletions

View File

@ -148,9 +148,10 @@
return parentId ? parentId : this.$store.state.projectId;
} else {
const project = this.projectList.find(p => p.id === projectId);
if (!project) {
return parentId ? parentId : this.$store.state.projectId;
if (project) {
return projectId;
}
return parentId ? parentId : this.$store.state.projectId;
}
},
getProjectName(id) {