diff --git a/api-test/frontend/src/business/definition/components/body/ApiBody.vue b/api-test/frontend/src/business/definition/components/body/ApiBody.vue index c1a583d441..87acc277a6 100644 --- a/api-test/frontend/src/business/definition/components/body/ApiBody.vue +++ b/api-test/frontend/src/business/definition/components/body/ApiBody.vue @@ -263,7 +263,7 @@ export default { if (!this.body.jsonSchema.type) { this.body.jsonSchema.type = data.type; } - this.body.jsonSchema = this.deepAssign(this.body.jsonSchema, data); + this.body.jsonSchema = JSON.parse(JSON.stringify(this.deepAssign(this.body.jsonSchema, data))); } } catch (e) { this.body.format = 'JSON'; diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue index f3e9e6fbe8..2c227cfaa9 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue @@ -1146,7 +1146,9 @@ export default { if (!this.basisData.environmentId) { this.basisData.environmentId = ''; } - if (this.basisData.moduleId && this.basisData.moduleId === 'default-module') { + if (this.basisData.moduleId && + this.basisData.moduleId === 'default-module' && + this.moduleOptions) { this.basisData.moduleId = this.moduleOptions[0].id; } if (this.basisData.isCopy) {