From 9bebd3af8281d1c5f0a1ce937eedfb4d2815fad3 Mon Sep 17 00:00:00 2001 From: zhangrui Date: Wed, 4 Nov 2026 12:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E6=B4=BB=E5=8A=A8=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/components/plugins/sysFilePreview/PdfIndex.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/static/components/plugins/sysFilePreview/PdfIndex.vue b/src/main/resources/static/components/plugins/sysFilePreview/PdfIndex.vue index 1dd1c21..598a4c0 100644 --- a/src/main/resources/static/components/plugins/sysFilePreview/PdfIndex.vue +++ b/src/main/resources/static/components/plugins/sysFilePreview/PdfIndex.vue @@ -66,6 +66,8 @@ module.exports = { if (currentVersion !== this.previewVersion || !this.pdf) return this.pdfObj = new Pdfh5('#pdf-container', { pdfurl: pdfUrl, + // 使用二进制数据直接交给 PDF.js,避免 Blob 转 Base64 后被 CSP 的 connect-src 拦截。 + responseType: 'arraybuffer', }) this.pdfObj.on("complete", () => { if (currentVersion !== this.previewVersion) return