12 lines
245 B
JavaScript
12 lines
245 B
JavaScript
export default {
|
|
props: {
|
|
response: {},
|
|
},
|
|
computed: {
|
|
responseBodyText() {
|
|
if (typeof this.response.body === "string") return this.response.body
|
|
return new TextDecoder("utf-8").decode(this.response.body)
|
|
},
|
|
},
|
|
}
|