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 = ""
|
imageSource.value = ""
|
||||||
const buf = props.response.body
|
const buf = props.response.body
|
||||||
const bytes = new Uint8Array(buf)
|
const bytes = new Uint8Array(buf)
|
||||||
const blob = new Blob([bytes.buffer])
|
const blob = new Blob([bytes.buffer], { type: responseType.value })
|
||||||
|
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
reader.onload = ({ target }) => {
|
reader.onload = ({ target }) => {
|
||||||
|
|
@ -91,7 +91,7 @@ onMounted(() => {
|
||||||
imageSource.value = ""
|
imageSource.value = ""
|
||||||
const buf = props.response.body
|
const buf = props.response.body
|
||||||
const bytes = new Uint8Array(buf)
|
const bytes = new Uint8Array(buf)
|
||||||
const blob = new Blob([bytes.buffer])
|
const blob = new Blob([bytes.buffer], { type: responseType.value })
|
||||||
|
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
reader.onload = ({ target }) => {
|
reader.onload = ({ target }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue