fix(接口测试): 场景下无请求控制台报错

This commit is contained in:
chenjianxing 2020-09-24 14:14:14 +08:00
parent b7a4db923c
commit 366265db36
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ export default {
}
},
select(request) {
if (!request) {
return;
}
request.environment = this.scenario.environment;
if (!request.useEnvironment) {
request.useEnvironment = false;