From 82b2a6cf6a4777d959e6afe05720358e4dc1281b Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 10 Mar 2021 18:05:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E6=89=A7=E8=A1=8C=E8=B0=83=E8=AF=95=E5=89=8D?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/EnvSelect.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) {