diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index fc21fb87..ad41e0e8 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -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() {