refactor: destructuring assignment
This commit is contained in:
parent
2b165a065c
commit
ef434ca804
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue