fix(接口定义): 用例执行dubbo协议不强制选择环境

This commit is contained in:
fit2-zhao 2021-03-24 10:15:36 +08:00
parent 3cc4c181b8
commit b02868245b
2 changed files with 10 additions and 9 deletions

View File

@ -129,6 +129,7 @@
import MsJmxStep from "../step/JmxStep";
import ApiResponseComponent from "../../../automation/scenario/component/ApiResponseComponent";
import ShowMoreBtn from "../../../../track/case/components/ShowMoreBtn";
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
const esbDefinition = (requireComponent != null && requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinition.vue") : {};
const esbDefinitionResponse = (requireComponent != null && requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinitionResponse.vue") : {};
@ -224,7 +225,7 @@
});
},
singleRun(data) {
if (!this.environment) {
if (this.api.protocol != "DUBBO" && this.api.protocol != "dubbo://" && !this.environment) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}

View File

@ -280,7 +280,7 @@
},
singleRun(row) {
if (!this.environment) {
if (this.currentApi.protocol != "DUBBO" && this.currentApi.protocol != "dubbo://" && !this.environment) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}
@ -298,7 +298,7 @@
},
batchRun() {
if (!this.environment) {
if (this.currentApi.protocol != "DUBBO" && this.currentApi.protocol != "dubbo://" && !this.environment) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}