Commit 25b982ea authored by xinzhedeai's avatar xinzhedeai

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

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