Commit 77a0032d authored by xinzhedeai's avatar xinzhedeai

fix:鸿蒙pdf文件预览处理

parent d41d6683
......@@ -159,7 +159,7 @@ window.addEventListener("load", function () {
}
// if(gemhoUtil.isHarmonyOS()){ // 如果是鸿蒙手机,预览pdf直接调转(预览下载功能无效)
// location.href = this.detailInfo.file
// location.href = this.detailInfo.file // ?.replace('http', 'https')
// return
// }
......@@ -168,7 +168,7 @@ window.addEventListener("load", function () {
forbidClick: true,
loadingType: 'spinner',
})
const pdfUrl = this.detailInfo.file //"http://192.168.2.11:8848/gaoquyingjih5-asd-jpaas/src/test/testPdf.pdf"
const pdfUrl = this.detailInfo.file // ?.replace('http', 'https'); //"http://192.168.2.11:8848/gaoquyingjih5-asd-jpaas/src/test/testPdf.pdf"
try {
// 1. 加载PDF文档(异步)
pdfDoc = await pdfjsLib.getDocument(pdfUrl).promise;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment