Browse Source

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

zhangcl 4 days ago
parent
commit
9066bd7a2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/pms/iotrddailyreport/FillDailyReportForm.vue

+ 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}`)