This commit is contained in:
parent
a283edec6e
commit
0f27cf2d49
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ watch(props.response, () => {
|
|||
imageSource.value = ""
|
||||
const buf = props.response.body
|
||||
const bytes = new Uint8Array(buf)
|
||||
const blob = new Blob([bytes.buffer])
|
||||
const blob = new Blob([bytes.buffer], { type: responseType.value })
|
||||
|
||||
const reader = new FileReader()
|
||||
reader.onload = ({ target }) => {
|
||||
|
|
@ -91,7 +91,7 @@ onMounted(() => {
|
|||
imageSource.value = ""
|
||||
const buf = props.response.body
|
||||
const bytes = new Uint8Array(buf)
|
||||
const blob = new Blob([bytes.buffer])
|
||||
const blob = new Blob([bytes.buffer], { type: responseType.value })
|
||||
|
||||
const reader = new FileReader()
|
||||
reader.onload = ({ target }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue