From f45b771a3d47b7d4bba33899b77e833d607db1e8 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 15 Aug 2025 14:59:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/feature/v5.0/5.0.2' into feature/v5.0/5.0.2

---
 src/utils/util.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/utils/util.js b/src/utils/util.js
index f2b2e09..325dcc5 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -477,4 +477,16 @@
     }
   }
   return newObj
-}
\ No newline at end of file
+}
+
+// a链接直接下载
+export const aLinkDownloadUtil = (url, name) => {
+  let a = document.createElement('a')
+  a.style.display = 'none'
+  a.href = url
+  a.download = name
+  document.body.appendChild(a)
+  a.click()
+  document.body.removeChild(a)
+  a = null
+}

--
Gitblit v1.9.3