From 4c92142105d9e5b7382c8329543436425c0bc385 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 25 Dec 2023 11:30:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=96=87=E4=BB=B6=EF=BC=8C=E5=AE=9E=E9=99=85=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=B2=A1=E6=9C=89=E6=96=87=E4=BB=B6=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1033861 --user=王孝刚 【接口定义】上传文件,不填名称,提示保存成功,实际查看没文件 https://www.tapd.cn/55049933/s/1447921 --- .../business/definition/components/ApiVariable.vue | 3 +-- .../components/environment/ApiEnvironmentConfig.vue | 1 - .../environment/commons/ApiScenarioVariables.vue | 12 +++++++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/ApiVariable.vue b/api-test/frontend/src/business/definition/components/ApiVariable.vue index bc4e5d9c11..97f8a6f1d5 100644 --- a/api-test/frontend/src/business/definition/components/ApiVariable.vue +++ b/api-test/frontend/src/business/definition/components/ApiVariable.vue @@ -557,7 +557,7 @@ export default { if (!this.parameters[this.parameters.length - 1].min) { this.$set(this.parameters[this.parameters.length - 1], 'min', 0); } - if (!this.parameters[this.parameters.length - 1].value) { + if (!this.parameters[this.parameters.length - 1].value && this.parameters[this.parameters.length - 1].type !== 'file') { this.$set(this.parameters[this.parameters.length - 1], 'value', null); } if (!this.parameters[this.parameters.length - 1].uuid) { @@ -566,7 +566,6 @@ export default { if (!this.parameters[this.parameters.length - 1].description) { this.$set(this.parameters[this.parameters.length - 1], 'description', null); } - this.$set(this.parameters[this.parameters.length - 1], 'files', null); } let savedApiParamsShowFields = getShowFields(this.storageKey); if (savedApiParamsShowFields) { diff --git a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue index 45b63bb32d..da2c9cc08f 100644 --- a/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/ApiEnvironmentConfig.vue @@ -299,7 +299,6 @@ export default { this.visible = false; } this.$refs.environmentEdit.clearValidate(); - this.currentEnvironment = null; removeGoBackListener(this.close); this.isCopy = false; }, diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index da5a073908..b316b5953e 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -123,7 +123,7 @@