From 6884180edd4961ed293a84e7caaa45537350c9f5 Mon Sep 17 00:00:00 2001
From: pyt <626651354@qq.com>
Date: 星期三, 07 五月 2025 15:20:04 +0800
Subject: [PATCH] fix

---
 src/utils/utils.js |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/utils/utils.js b/src/utils/utils.js
index d12141a..debfa50 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -25,14 +25,12 @@
 
 // 导出
 export const exportExcell = (name, params, url) => {
-  fetch(apiConfig.baseURL + url, {
+  const query = new URLSearchParams(params).toString();
+  fetch(`${apiConfig.baseURL}${url}?${query}`, {
     method: 'get',
-    params: JSON.stringify({
-      ...params,
-    }),
     headers: {
       Authorization: localStorage.getItem('token'),
-      'ConTent-Type': 'application/json;charset=UTF-8',
+      'Content-Type': 'application/json;charset=UTF-8',
       timestamp: new Date().getTime(),
       client: localStorage.getItem('client')
     },
@@ -55,4 +53,4 @@
         duration: 2000
       })
     });
-};
+};
\ No newline at end of file

--
Gitblit v1.7.1