chore: remove annotation

master
丁锐 2022-03-31 15:17:25 +08:00
parent 64d7a5ada8
commit 55d94f90fe
1 changed files with 0 additions and 18 deletions

View File

@ -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}`
// }
}, },
}, },
} }