From 6417a131b0bf6cee9ca5069a8a48a8596316ce30 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 25 Feb 2021 11:22:01 +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=E8=B7=A8=E9=A1=B9=E7=9B=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commons/utils/ServiceUtils.java | 2 +- .../automation/scenario/ApiScenarioEnv.vue | 52 +++++++++++-------- .../automation/scenario/ApiScenarioList.vue | 2 +- .../automation/scenario/EditApiScenario.vue | 12 ++--- .../component/ApiScenarioComponent.vue | 15 ++++-- 5 files changed, 49 insertions(+), 34 deletions(-) diff --git a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java index 1e79b2618f..64565adada 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java @@ -32,7 +32,7 @@ public class ServiceUtils { * @return */ public static void getSelectAllIds( T batchRequest, BaseQueryRequest queryRequest, Function> func) { - if (queryRequest.isSelectAll()) { + if (queryRequest != null && queryRequest.isSelectAll()) { List ids = func.apply(queryRequest); if (!ids.isEmpty()) { ids = ids.stream() diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioEnv.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioEnv.vue index e2578b7dd0..0aa1b79ff6 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioEnv.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioEnv.vue @@ -3,21 +3,23 @@ title="环境选择" :visible.sync="dialogVisible" width="30%" + :destroy-on-close="true" :before-close="handleClose">
{{ getProjectName(pe.id) }} - + - + {{ $t('api_test.environment.environment_config') }}