From bc25523bd723e92e85f3463edca27f0fe18a7a71 Mon Sep 17 00:00:00 2001
From: DESKTOP-LMJ82IJ\Eno <creaycat@gmail.com>
Date: 星期日, 13 四月 2025 16:49:19 +0800
Subject: [PATCH] #修改 收货单据界面优化修改

---
 rsf-admin/src/page/components/ImportModal.jsx |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/rsf-admin/src/page/components/ImportModal.jsx b/rsf-admin/src/page/components/ImportModal.jsx
index 82d3557..703a018 100644
--- a/rsf-admin/src/page/components/ImportModal.jsx
+++ b/rsf-admin/src/page/components/ImportModal.jsx
@@ -80,10 +80,13 @@
     };
 
     const downloadTemplate = async (type) => {
-        const res = await request.post(`/${value}/template/download`, {})
+        const res = await request.post(`/${value}/template/download`, {}, {
+            responseType: "blob",
+        })
         const url = window.URL.createObjectURL(
             new Blob([res.data], { type: res.headers["content-type"] }),
         );
+
         const link = document.createElement("a");
         link.href = url;
         link.setAttribute("download", `${value}.xlsx`);

--
Gitblit v1.9.1