chore: remove annotation
parent
64d7a5ada8
commit
55d94f90fe
18
demo/App.vue
18
demo/App.vue
|
|
@ -64,24 +64,6 @@ export default {
|
||||||
blobToDataURI(file).then(data => {
|
blobToDataURI(file).then(data => {
|
||||||
this.pdfSource = data
|
this.pdfSource = data
|
||||||
})
|
})
|
||||||
|
|
||||||
// const reader = new FileReader()
|
|
||||||
|
|
||||||
// const rs = reader.readAsArrayBuffer(file)
|
|
||||||
|
|
||||||
// let blob = null
|
|
||||||
|
|
||||||
// reader.onload = e => {
|
|
||||||
// if (typeof e.target.result === 'object') {
|
|
||||||
// blob = new Blob([e.target.result])
|
|
||||||
// } else {
|
|
||||||
// blob = e.target.result
|
|
||||||
// }
|
|
||||||
// console.log(blob)
|
|
||||||
// const data = Object.prototype.toString.call(blob)
|
|
||||||
|
|
||||||
// this.pdfSource = `data:application/octet-stream;base64,${blob}`
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue