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 @@ - -