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