fix(接口测试): 修复场景环境选择问题

--bug=1009529 --user=赵勇 【接口测试】导入jmx场景,选择导入环境后调试,还是提示请选择环境 https://www.tapd.cn/55049933/s/1090637
This commit is contained in:
fit2-zhao 2022-01-11 18:30:35 +08:00 committed by jianxing
parent 7d97ac5705
commit 73193cc08a
1 changed files with 3 additions and 1 deletions

View File

@ -1329,7 +1329,9 @@ export default {
this.projectEnvMap.set(this.projectId, obj.environmentId);
}
this.envGroupId = response.data.environmentGroupId;
if (response.data.environmentType) {
this.environmentType = response.data.environmentType;
}
this.currentScenario.variables = [];
let index = 1;
if (obj.variables) {