From 457d8624fb2d6b45e57a017616aad60bd89cebaf Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 17 Sep 2021 18:33:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89)=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E9=A1=B5=E9=9D=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/components/request/http/ApiHttpRequestForm.vue | 3 +++ 1 file changed, 3 insertions(+) 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 7d184b7bcf..c044dfedd5 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 @@ -228,6 +228,9 @@ export default { }) }, init() { + if (Object.prototype.toString.call(this.request).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'object') { + this.request = JSON.parse(this.request); + } if (!this.request.body) { this.request.body = new Body(); }