Added mixin for common text rendering code
This commit is contained in:
parent
0fbf24b836
commit
d8b5fc5d3f
1 changed files with 10 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
export default {
|
||||
props: {
|
||||
response: {},
|
||||
},
|
||||
computed: {
|
||||
responseBodyText() {
|
||||
return new TextDecoder("utf-8").decode(this.response.body)
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Reference in a new issue