refactor: destructuring assignment
This commit is contained in:
@@ -1839,8 +1839,8 @@ export default {
|
|||||||
return this.path.match(/^([^?]*)\??/)[1];
|
return this.path.match(/^([^?]*)\??/)[1];
|
||||||
},
|
},
|
||||||
rawRequestBody() {
|
rawRequestBody() {
|
||||||
const { bodyParams } = this;
|
const { bodyParams, contentType } = this;
|
||||||
if (this.contentType === "application/json") {
|
if (contentType === "application/json") {
|
||||||
try {
|
try {
|
||||||
const obj = JSON.parse(
|
const obj = JSON.parse(
|
||||||
`{${bodyParams
|
`{${bodyParams
|
||||||
|
|||||||
Reference in New Issue
Block a user