refactor: 场景中有配置环境,创建请求默认引用环境

This commit is contained in:
chenjianxing 2020-08-03 17:11:13 +08:00
parent bd3b9e0164
commit e41ca820df
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@
methods: {
createRequest: function (type) {
let request = new RequestFactory({type: type});
if (this.scenario.environmentId) {
request.useEnvironment = true;
}
this.scenario.requests.push(request);
this.type = "";
this.visible = false;