From f2d66a8a579fc63a8c481a9ae6ebe766e2efafe0 Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 6 Jun 2022 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PdfPreview/view.vue | 5 ----- src/views/portal/case/Detail.vue | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index c9d03b34..1062f1d5 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -119,11 +119,6 @@ export default { }); } }, - initSrc(url){ - if(url && url.indexOf('.pdf')>-1){ - //this.src = url; - } - }, prePage(type) { if (this.currentPage > 1) { this.currentPage--; diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 30659aad..f6397591 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -98,6 +98,7 @@ export default { }; }, mounted() { + this.pdfPath=this.basePath+'/case/demo.pdf'; this.resolveId = this.$route.query.id; if (this.resolveId) { this.getCaseData(); @@ -197,7 +198,7 @@ export default { .jianjie { margin: 15px 0; background-color: #fff; - padding: 20px 100px 10px 100px; + padding: 0px 0px 10px 0px; .content { padding: 10px 0; line-height: 25px;