refactor(接口测试): JDBC请求和TCP请求默认加载自定义选中的环境
https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001013756&url_cache_key=from_url_release_list_4f227c87fc9cce703576b3d521ccf08b&action_entry_type=bugs
This commit is contained in:
parent
730424cc5f
commit
d22a71fa8e
|
@ -170,6 +170,10 @@ export default {
|
|||
if (hasLicense()) {
|
||||
this.getVersionHistory();
|
||||
}
|
||||
|
||||
if(!this.request.environmentId){
|
||||
this.request.environmentId = this.$store.state.useEnvironment;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openHis() {
|
||||
|
|
|
@ -111,6 +111,9 @@ export default {
|
|||
} else {
|
||||
this.request = createComponent("JDBCSampler");
|
||||
}
|
||||
if(!this.request.environmentId){
|
||||
this.request.environmentId = this.$store.state.useEnvironment;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
debugResultId() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue