fix(场景自动化): 运行环境显示问题
This commit is contained in:
parent
a555ddd334
commit
a21c611d35
|
@ -54,6 +54,8 @@
|
|||
methods: {
|
||||
init() {
|
||||
this.projectIds.forEach(id => {
|
||||
const project = this.projectList.find(p => p.id === id);
|
||||
if (project) {
|
||||
let item = {id: id, envs: [], selectEnv: ""};
|
||||
this.data.push(item);
|
||||
this.result = this.$get('/api/environment/list/' + id, res => {
|
||||
|
@ -68,6 +70,7 @@
|
|||
// 选中环境是否存在
|
||||
temp.selectEnv = envs.filter(e => e.id === envId).length === 0 ? null : envId;
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
open() {
|
||||
|
|
Loading…
Reference in New Issue