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') }}