fix(接口测试): 接口SQL协议用例执行环境选择校验调整。

This commit is contained in:
fit2-zhao 2021-06-18 14:52:45 +08:00 committed by fit2-zhao
parent bef87d2640
commit a58e988402
2 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@
});
},
singleRun(data) {
if (this.api.protocol != "DUBBO" && this.api.protocol != "dubbo://" && !this.environment) {
if (this.api.protocol !== "SQL" && this.api.protocol != "DUBBO" && this.api.protocol != "dubbo://" && !this.environment) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}

View File

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