From 8434a5feb0d48aa5b73878517455ba09605b696c Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 9 Jun 2022 19:47:43 +0800 Subject: [PATCH] =?UTF-8?q?pdf=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PdfPreview/view.vue | 3 --- 1 file changed, 3 deletions(-) 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() {