From 2884be21228fb6b9ed801d732813e8df507cae23 Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期二, 01 七月 2025 22:52:58 +0800 Subject: [PATCH] 推送钉钉更改 --- pages/fileView/pdfView.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/fileView/pdfView.vue b/pages/fileView/pdfView.vue index 3c0b864..8b841a8 100644 --- a/pages/fileView/pdfView.vue +++ b/pages/fileView/pdfView.vue @@ -17,8 +17,14 @@ }, onLoad(option) { - let fileUrl = decodeURIComponent(option.url) - this.allUrl = this.viewerUrl + '?file=' + fileUrl//灏嗘彃浠跺湴鍧�涓庢帴鏀剁殑鏂囦欢鍦板潃鎷兼帴璧锋潵 + // let fileUrl = decodeURIComponent(option.url) + // this.allUrl = this.viewerUrl + '?file=' + fileUrl//灏嗘彃浠跺湴鍧�涓庢帴鏀剁殑鏂囦欢鍦板潃鎷兼帴璧锋潵 + + const base64Data = getApp().globalData.tempPDF; + this.pdfUrl = `data:application/pdf;base64,${base64Data}`; + + this.allUrl = this.viewerUrl + '?file=' + encodeURIComponent(this.pdfUrl) + } } </script> -- Gitblit v1.9.3