From 978b01add7819f41682098ddc312013eb21656f3 Mon Sep 17 00:00:00 2001
From: wangyuhang <139@qq.com>
Date: 星期五, 18 七月 2025 11:31:35 +0800
Subject: [PATCH] 生成的代码

---
 src/utils/request.ts |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/request.ts b/src/utils/request.ts
index fd457f9..b399f84 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -136,7 +136,10 @@
 export function download(url: string, params: any, filename: string, config: any) {
   downloadLoadingInstance = ElLoading.service({ text: "姝e湪涓嬭浇鏁版嵁锛岃绋嶅��", background: "rgba(0, 0, 0, 0.7)" });
   return service
-    .post(url, params, {
+    .get(url, { 
+      params,
+      responseType: "blob",
+    }, {
       transformRequest: [
         (params) => {
           return tansParams(params);
@@ -147,6 +150,7 @@
       ...config,
     })
     .then(async (data) => {
+      // console.log(data, 'data===')
       const isBlob = blobValidate(data);
       if (isBlob) {
         const blob = new Blob([data]);

--
Gitblit v1.9.1