Переглянути джерело

pms 瑞都日报 上传附件 预览 base64编码

zhangcl 5 днів тому
батько
коміт
9066bd7a2f

+ 1 - 1
src/views/pms/iotrddailyreport/FillDailyReportForm.vue

@@ -544,7 +544,7 @@ const inContent = async (attachment) => {
     // 直接使用 attachment.filePath
     const filePath = attachment.filePath
     // 确保 filePath 是编码后的格式
-    const encodedPath = encodeURIComponent(filePath)
+    const encodedPath = encodeURIComponent(Base64.encode(filePath))
 
     // 打开预览窗口
     window.open(`http://doc.deepoil.cc:8012/onlinePreview?url=${encodedPath}`)