fix(测试跟踪): 测试计划选择环境控制台报错
--bug=1018425 --user=陈建星 【测试跟踪】测试计划列表,执行测试计划 ,选择环境,console有报错 https://www.tapd.cn/55049933/s/1268339
This commit is contained in:
parent
81c68f23a1
commit
83499ccc15
|
@ -102,9 +102,11 @@ export default {
|
|||
// 固定环境列表渲染顺序
|
||||
let temp = this.data.find(dt => dt.id === id);
|
||||
temp.envs = envs;
|
||||
let envId = this.envMap.get(id);
|
||||
// 选中环境是否存在
|
||||
temp.selectEnv = envs.filter(e => e.id === envId).length === 0 ? null : envId;
|
||||
if (this.envMap && this.envMap.size > 0) {
|
||||
let envId = this.envMap.get(id);
|
||||
// 选中环境是否存在
|
||||
temp.selectEnv = envs.filter(e => e.id === envId).length === 0 ? null : envId;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue