From f233143d5066b8cdcbaf03b51e731e715be73701 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 16 Aug 2022 10:35:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:pdf=E9=A2=84=E8=A7=88=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/ShowFile/ShowFile.vue | 5 ----- src/components/office/PdfPreview.vue | 18 +++++++++++------- src/components/preview/OfficePreview.vue | 21 ++++++++++++++------- src/utils/file-config.js | 13 ++++--------- 5 files changed, 30 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index 985c557..482b285 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jmal-cloud-view", - "version": "2.2.40", + "version": "2.2.41", "description": "jmalcloud", "author": "Jmal ", "license": "MIT", diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index c5da901..f4d0358 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -3162,11 +3162,6 @@ export default { this.officePreviewRow = row return } - if (row.suffix === 'pdf') { - // pdf文件 - fileConfig.preview(this.$store.state.user.name, row, this.$store.getters.token) - return - } this.notPreviewDialogVisible = true } }, diff --git a/src/components/office/PdfPreview.vue b/src/components/office/PdfPreview.vue index 3e9e6c3..80813f4 100644 --- a/src/components/office/PdfPreview.vue +++ b/src/components/office/PdfPreview.vue @@ -1,10 +1,9 @@