pdf显示问题

This commit is contained in:
daihh
2022-06-09 19:47:43 +08:00
parent 4b1af652c9
commit 8434a5feb0

View File

@@ -146,7 +146,6 @@ export default {
},
//加载页面
loadInitPdf(url) {
if(url && url.indexOf('.pdf')>-1){
let loadingTask = pdf.createLoadingTask(url);
this.src=loadingTask;
loadingTask.promise.then((pdf) =>{
@@ -159,8 +158,6 @@ export default {
}).catch((err) =>{
this.$message.error("加载内容失败,请联系管理员");
});
}
},
handleScroll() {