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