Commit 25b982ea authored by xinzhedeai's avatar xinzhedeai

fix:安全常识鸿蒙预览功能修改。(pdfjs)

parent 696f5df0
......@@ -148,22 +148,20 @@ window.addEventListener("load", function () {
},
async previewFile() {
if(!this.detailInfo.file){
alert('附件地址不存在');
return
}
if(!gemhoUtil.isIOSStrict()){ // 如果是苹果手机,预览pdf直接调转
if(gemhoUtil.isIOSStrict()){ // 如果是苹果手机,预览pdf直接调转
location.href = this.detailInfo.file
return
}
if(!gemhoUtil.isHarmonyOS()){ // 如果是鸿蒙手机,预览pdf直接调转
location.href = this.detailInfo.file
return
}
// if(gemhoUtil.isHarmonyOS()){ // 如果是鸿蒙手机,预览pdf直接调转(预览下载功能无效)
// location.href = this.detailInfo.file
// return
// }
vant.Toast.loading({
message: '正在加载...',
......
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