From e85439da9f2fb1be90509a72e637613a5c0bbc11 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 09 十一月 2023 12:08:18 +0800
Subject: [PATCH] #副PLAN

---
 src/main/webapp/static/js/common.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index a76c3cc..8d34c57 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -323,7 +323,12 @@
     const domain = filepath.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n]+)/im)[0] + "/";//鍩熷悕閮ㄥ垎
     // 閰嶇疆鍝嶅簲澶村疄鐜伴�氳繃URL璁块棶鏃惰嚜鍔ㄤ笅杞芥枃浠讹紝骞惰缃笅杞藉悗鐨勬枃浠跺悕銆�
     const filename = filepath.split(domain)[1];
+    const response = {
+        "content-disposition": `attachment; filename=${encodeURIComponent(
+            filename
+        )}`,
+    };
     // 濉啓Object瀹屾暣璺緞銆侽bject瀹屾暣璺緞涓笉鑳藉寘鍚獴ucket鍚嶇О銆�
-    const url = client.signatureUrl(filename);
+    const url = client.signatureUrl(filename,{response});
     return url;
 }
\ No newline at end of file

--
Gitblit v1.9.1