From fe903b2a6834ac06a2d1b49b705c74ad1ccb10d8 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 28 七月 2023 12:04:53 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/api/GetItem.js |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js
index a1ade96..9c0df49 100644
--- a/Source/UBCS-WEB/src/api/GetItem.js
+++ b/Source/UBCS-WEB/src/api/GetItem.js
@@ -56,18 +56,12 @@
     }
   })
 }
-//瀵煎嚭
+// 涓绘暟鎹鍑�
 export function exportCode(data){
   return request({
     url: 'api/ubcs-code/mdmEngineController/exportCode',
-    method: 'excel',
-    responseType: 'json', // 璁剧疆鍝嶅簲绫诲瀷涓篴rraybuffer
-    headers: {
-      'Content-Type': 'application/vnd.ms-excel', // 璁剧疆璇锋眰澶翠负浜岃繘鍒舵祦绫诲瀷
-      // 鍦ㄨ繖閲屽彲浠ヨ缃叾浠栬姹傚ご淇℃伅
-      // 渚嬪锛�
-      // 'Authorization': 'Bearer your-token',
-    },
+    method: 'post',
+    responseType: 'blob', // 璁剧疆鍝嶅簲绫诲瀷涓篵lob
     params:{
       ...data
     }

--
Gitblit v1.9.3