feat(接口定义): 需求4 可以全局设置环境选项 #1001750 --story=1001750 --user=赵勇 4.接口定义增加全局运... https://www.tapd.cn/55049933/s/1031567

This commit is contained in:
fit2-zhao 2021-08-03 09:51:54 +08:00 committed by fit2-zhao
parent a0013580ca
commit 698ab5db12
2 changed files with 200 additions and 194 deletions

View File

@ -141,6 +141,9 @@ export default {
if (this.createCase) {
this.sysAddition();
}
if (!this.environment && this.$store.state.useEnvironment) {
this.environment = this.$store.state.useEnvironment;
}
},
computed: {
isCaseEdit() {

View File

@ -259,6 +259,9 @@
this.api = JSON.parse(JSON.stringify(this.apiData));
this.api.protocol = this.currentProtocol;
this.currentRequest = this.api.request;
if (!this.api.environmentId && this.$store.state.useEnvironment) {
this.api.environmentId = this.$store.state.useEnvironment;
}
//this.getResult();
}
}