品牌活动整改
This commit is contained in:
@@ -66,6 +66,8 @@ module.exports = {
|
|||||||
if (currentVersion !== this.previewVersion || !this.pdf) return
|
if (currentVersion !== this.previewVersion || !this.pdf) return
|
||||||
this.pdfObj = new Pdfh5('#pdf-container', {
|
this.pdfObj = new Pdfh5('#pdf-container', {
|
||||||
pdfurl: pdfUrl,
|
pdfurl: pdfUrl,
|
||||||
|
// 使用二进制数据直接交给 PDF.js,避免 Blob 转 Base64 后被 CSP 的 connect-src 拦截。
|
||||||
|
responseType: 'arraybuffer',
|
||||||
})
|
})
|
||||||
this.pdfObj.on("complete", () => {
|
this.pdfObj.on("complete", () => {
|
||||||
if (currentVersion !== this.previewVersion) return
|
if (currentVersion !== this.previewVersion) return
|
||||||
|
|||||||
Reference in New Issue
Block a user