diff --git a/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java b/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java index 3592cae377..e340495f10 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java @@ -846,6 +846,9 @@ public class MockConfigService { if (project != null) { RequestMockParams requestMockParams = MockApiUtils.genRequestMockParamsFromHttpRequest(request, true); String urlSuffix = this.getUrlSuffix(project.getSystemId(), request); + LogUtil.info("Mock urlSuffix:{}", urlSuffix); + LogUtil.info("Mock requestHeaderMap:{}", requestHeaderMap); + LogUtil.info("Mock requestMockParams:{}", requestMockParams); List qualifiedApiList = apiDefinitionService.preparedUrl(project.getId(), method, urlSuffix, requestHeaderMap.get(MockApiHeaders.MOCK_API_RESOURCE_ID)); for (ApiDefinitionWithBLOBs api : qualifiedApiList) { if (StringUtils.isEmpty(returnStr)) { diff --git a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue index a2fbb1139c..bdd8dddb86 100644 --- a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue @@ -10,7 +10,7 @@ :delete-fuc="openDelEnv" @itemSelected="environmentSelected" ref="environmentItems"/> diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/variable/CsvFileUpload.vue b/framework/sdk-parent/frontend/src/components/environment/commons/variable/CsvFileUpload.vue index b1a8e47e5b..03e5a025df 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/variable/CsvFileUpload.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/variable/CsvFileUpload.vue @@ -58,7 +58,8 @@ - 下载 + + {{this.$t('project.file_download')}} @@ -194,12 +195,14 @@ export default { callback: (action) => { if (action === 'confirm') { this.$refs.upload.handleRemove(file); + this.$refs.uploadLocal.handleRemove(file); for (let i = 0; i < this.parameter.files.length; i++) { let paramFileName = this.parameter.files[i].name ? this.parameter.files[i].name : this.parameter.files[i].file.name; if (fileName === paramFileName) { this.parameter.files.splice(i, 1); this.$refs.upload.handleRemove(file); + this.$refs.uploadLocal.handleRemove(file); break; } }