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 @@