Commit 114fb6cb authored by 胡's avatar

fix: 优化预览pdf

parent 0e97354a
......@@ -76,7 +76,7 @@ export default {
},
_loadFile (url) {
console.log('URL ==== ' + url)
this.PDFJS.getDocument(url).then((pdf) => {
this.PDFJS.getDocument(url).promise.then((pdf) => {
this.pdfDoc = pdf
// debugger
console.log('pdf ==== ' + pdf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment