fix(场景自动化): 单步骤调试环境检查问题

This commit is contained in:
shiziyuan9527 2021-04-29 16:26:39 +08:00 committed by 刘瑞斌
parent 4cabc0f701
commit 7a5ab7e1f4
1 changed files with 7 additions and 5 deletions

View File

@ -309,6 +309,7 @@
run() {
if (this.isApiImport) {
if (this.request.type && (this.request.type === "HTTPSamplerProxy" || this.request.type === "JDBCSampler" || this.request.type === "TCPSampler")) {
if (!this.envMap || this.envMap.size === 0) {
this.$warning("请在环境配置中为该步骤所属项目选择运行环境!");
return false;
} else if (this.envMap && this.envMap.size > 0) {
@ -319,6 +320,7 @@
}
}
}
}
this.request.active = true;
this.loading = true;
this.runData = [];