diff --git a/frontend/src/business/components/api/automation/scenario/EnvSelect.vue b/frontend/src/business/components/api/automation/scenario/EnvSelect.vue index 281c466aea..c9eda69790 100644 --- a/frontend/src/business/components/api/automation/scenario/EnvSelect.vue +++ b/frontend/src/business/components/api/automation/scenario/EnvSelect.vue @@ -112,7 +112,17 @@ export default { } }) } else { - sign = false; + // 如果有环境,检查环境 + if (this.envMap && this.envMap.size > 0) { + this.projectIds.forEach(id => { + if (!this.envMap.get(id)) { + sign = false; + return false; + } + }) + } else { + sign = false; + } } if (!sign) {