feat(接口定义): 需求4 可以全局设置环境选项 #1001750 --story=1001750 --user=赵勇 4.接口定义增加全局运... https://www.tapd.cn/55049933/s/1031567
This commit is contained in:
parent
a0013580ca
commit
698ab5db12
|
@ -141,6 +141,9 @@ export default {
|
||||||
if (this.createCase) {
|
if (this.createCase) {
|
||||||
this.sysAddition();
|
this.sysAddition();
|
||||||
}
|
}
|
||||||
|
if (!this.environment && this.$store.state.useEnvironment) {
|
||||||
|
this.environment = this.$store.state.useEnvironment;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isCaseEdit() {
|
isCaseEdit() {
|
||||||
|
|
|
@ -259,6 +259,9 @@
|
||||||
this.api = JSON.parse(JSON.stringify(this.apiData));
|
this.api = JSON.parse(JSON.stringify(this.apiData));
|
||||||
this.api.protocol = this.currentProtocol;
|
this.api.protocol = this.currentProtocol;
|
||||||
this.currentRequest = this.api.request;
|
this.currentRequest = this.api.request;
|
||||||
|
if (!this.api.environmentId && this.$store.state.useEnvironment) {
|
||||||
|
this.api.environmentId = this.$store.state.useEnvironment;
|
||||||
|
}
|
||||||
//this.getResult();
|
//this.getResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue