gjTool / pdfh5

web/h5/移动端PDF预览插件
https://www.gjtool.cn/pdfh5/pdf.html
MIT License
958 stars 239 forks source link

报了这个错Uncaught TypeError: Failed to execute "readAsDataURL' on "FileReader': parameter 1 is not of type 'Blob'. #199

Open SAKURA-LBY opened 2 months ago

SAKURA-LBY commented 2 months ago

本得开发模式pdfh5实例化pdfurl路径是放在public目录下的pdf文件,报了 *Uncaught TypeError: Failed to execute "readAsDataURL' on "FileReader': parameter 1 is not of type 'Blob'.但我build到生产环境又没有爆出这个问题.大神能帮我看看吗

SAKURA-LBY commented 2 months ago

路径是”/pdfDemo.pdf” 在浏览器是可以显示这个pdf文件,get请求也请求到了