refactor: 场景中有配置环境,创建请求默认引用环境
This commit is contained in:
parent
bd3b9e0164
commit
e41ca820df
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue