diff --git a/frontend/src/business/components/api/definition/components/body/ApiBody.vue b/frontend/src/business/components/api/definition/components/body/ApiBody.vue index 209b4fa9b4..994975b50f 100644 --- a/frontend/src/business/components/api/definition/components/body/ApiBody.vue +++ b/frontend/src/business/components/api/definition/components/body/ApiBody.vue @@ -130,6 +130,9 @@ export default { }, watch: { + 'body.typeChange'(){ + this.reloadCodeEdit(); + }, 'body.raw'() { if (this.body.format !== 'JSON-SCHEMA' && this.body.raw) { try { diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue index cc0af27bde..c6c2595558 100644 --- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue @@ -198,6 +198,9 @@ export default { if (this.request.arguments && this.request.arguments.length > 1) { this.activeName = 'parameters'; } + if(this.request.body) { + this.request.body.typeChange = this.request.changeId; + } this.reload(); } },