From ef434ca8040a97cc98d2b61498c5902162a75f8c Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 1 Feb 2020 22:30:35 +0530 Subject: [PATCH] refactor: destructuring assignment --- pages/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 943780b49..c1168c9c5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1839,8 +1839,8 @@ export default { return this.path.match(/^([^?]*)\??/)[1]; }, rawRequestBody() { - const { bodyParams } = this; - if (this.contentType === "application/json") { + const { bodyParams, contentType } = this; + if (contentType === "application/json") { try { const obj = JSON.parse( `{${bodyParams