fix(接口测试): 修复TCP接口历史遗留环境兼容问题

--bug=1013451 --user=赵勇 【接口测试】TCP请求,在TEST页面执行,环境信息没带上【+github#13897】 https://www.tapd.cn/55049933/s/1163999
This commit is contained in:
fit2-zhao 2022-05-26 18:04:16 +08:00 committed by fit2-zhao
parent 933e92c23a
commit 5ddeb98efa
1 changed files with 3 additions and 0 deletions

View File

@ -339,6 +339,9 @@ export default {
if (requireComponent != null && JSON.stringify(esbDefinition) !== '{}') {
this.showXpackCompnent = true;
}
if(this.api.environmentId) {
this.api.request.useEnvironment = this.api.environmentId;
}
this.checkVersionEnable();
}
},