fix(接口测试): 修复场景显示环境为空的缺陷

--bug=1032426 --user=王孝刚 【接口自动化】全新空间和项目-接口场景-选择运行环境时,列表是空
https://www.tapd.cn/55049933/s/1436303
This commit is contained in:
wxg0103 2023-11-14 15:17:39 +08:00 committed by 刘瑞斌
parent 5cc24787cd
commit 000129d632
1 changed files with 2 additions and 2 deletions

View File

@ -2060,10 +2060,10 @@ export default {
}
this.projectIds.add(this.projectId);
if (this.projectIds.size > 1) {
let projects = [];
let projects = new Set();
this.projectIds.forEach((item) => {
if (this.projectList.filter((project) => project.id === item).length > 0) {
projects.push(item);
projects.add(item);
}
});
this.projectIds = projects;