From 99d0bb96043ba5d6db66bbfb00f67ca4e09f3ffb Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 07 三月 2025 09:08:33 +0800
Subject: [PATCH] 小片尺寸和成品尺寸不相同时,打印显示小片信息

---
 north-glass-erp/northglass-erp/src/hook/downLoadFile.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/hook/downLoadFile.js b/north-glass-erp/northglass-erp/src/hook/downLoadFile.js
new file mode 100644
index 0000000..2b29d4f
--- /dev/null
+++ b/north-glass-erp/northglass-erp/src/hook/downLoadFile.js
@@ -0,0 +1,7 @@
+export default function downloadFile(url,fileName){
+       // 鏂囦欢鐨刄RL鍦板潃
+    const link = document.createElement('a');
+    link.href = url;
+    link.setAttribute('download', fileName);
+    link.click();
+}
\ No newline at end of file

--
Gitblit v1.8.0