fit2-zhao 2022-06-02 12:00:38 +08:00 committed by f2c-ci-robot[bot]
parent 730424cc5f
commit d22a71fa8e
4 changed files with 15 additions and 2 deletions

View File

@ -170,6 +170,10 @@ export default {
if (hasLicense()) {
this.getVersionHistory();
}
if(!this.request.environmentId){
this.request.environmentId = this.$store.state.useEnvironment;
}
},
methods: {
openHis() {

View File

@ -111,6 +111,9 @@ export default {
} else {
this.request = createComponent("JDBCSampler");
}
if(!this.request.environmentId){
this.request.environmentId = this.$store.state.useEnvironment;
}
},
watch: {
debugResultId() {

View File

@ -60,8 +60,8 @@
}
}
if (!hasEnvironment) {
this.currentData.environmentId = '';
this.currentData.environment = undefined;
this.currentData.environmentId = this.$store.state.useEnvironment;
this.currentData.environment = this.$store.state.useEnvironment;
}
});
} else {

View File

@ -290,8 +290,14 @@ export default {
created() {
//
this.api = JSON.parse(JSON.stringify(this.apiData));
if(!this.api.environmentId){
this.api.environmentId = this.$store.state.useEnvironment;
}
this.api.protocol = this.currentProtocol;
this.currentRequest = this.api.request;
if(!this.currentRequest.environmentId){
this.currentRequest.environmentId = this.$store.state.useEnvironment;
}
this.runLoading = false;
this.getEnvironments();
this.getResult();