Update index.vue
This commit is contained in:
parent
fec3c309be
commit
e0aede3fc4
1 changed files with 2 additions and 2 deletions
|
|
@ -1938,7 +1938,7 @@ export default {
|
|||
if (["POST", "PUT", "PATCH"].includes(this.method)) {
|
||||
let requestBody = this.rawInput ? this.rawParams : this.rawRequestBody
|
||||
if (this.contentType.includes("json")) {
|
||||
requestBody = `JSON.stringify("${requestBody}")`
|
||||
requestBody = `JSON.stringify(${requestBody})`
|
||||
} else if (this.contentType.includes("x-www-form-urlencoded")) {
|
||||
requestBody = `"${requestBody}"`
|
||||
}
|
||||
|
|
@ -1967,7 +1967,7 @@ export default {
|
|||
if (["POST", "PUT", "PATCH"].includes(this.method)) {
|
||||
let requestBody = this.rawInput ? this.rawParams : this.rawRequestBody
|
||||
if (this.contentType.includes("json")) {
|
||||
requestBody = `JSON.stringify("${requestBody}")`
|
||||
requestBody = `JSON.stringify(${requestBody})`
|
||||
} else if (this.contentType.includes("x-www-form-urlencoded")) {
|
||||
requestBody = `"${requestBody}"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue