From 3b1df05ae03c07ccf9bd8753edf35c4fc1b1a1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Tue, 16 Jul 2024 19:17:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20pdf=20=E9=A2=84?= =?UTF-8?q?=E8=A7=88=20(#5838)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pdfjs 安全漏洞,后续版本增加预览 pdf --- frontend/package.json | 1 - frontend/src/views/host/file-management/index.vue | 2 +- .../src/views/host/file-management/preview/index.vue | 10 ---------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 058a352c6..4a8e29af6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -30,7 +30,6 @@ "@highlightjs/vue-plugin": "^2.1.0", "@vue-office/docx": "^1.6.2", "@vue-office/excel": "^1.7.8", - "@vue-office/pdf": "^2.0.2", "@vueuse/core": "^8.9.4", "@xterm/addon-fit": "^0.10.0", "@xterm/xterm": "^5.5.0", diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index a5a468637..fcb00b2d1 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -695,7 +695,7 @@ const openDeCompress = (item: File.File) => { const openView = (item: File.File) => { const fileType = getFileType(item.extension); - const previewTypes = ['image', 'video', 'audio', 'pdf', 'word', 'excel']; + const previewTypes = ['image', 'video', 'audio', 'word', 'excel']; if (previewTypes.includes(fileType)) { return openPreview(item, fileType); } diff --git a/frontend/src/views/host/file-management/preview/index.vue b/frontend/src/views/host/file-management/preview/index.vue index a89bce934..1f341ce44 100644 --- a/frontend/src/views/host/file-management/preview/index.vue +++ b/frontend/src/views/host/file-management/preview/index.vue @@ -35,15 +35,6 @@ - -