Update index.vue

This commit is contained in:
Liyas Thomas 2020-03-22 09:56:53 +05:30 committed by GitHub
parent 2a8ba00024
commit ed4f1fe6f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1845,7 +1845,7 @@ export default {
},
rawRequestBody() {
const { bodyParams, contentType } = this
if (contentType === "application/json") {
if (contentType.endsWith("json")) {
try {
const obj = JSON.parse(
`{${bodyParams