From 3bea59c22833ecf7679498ef29f90a3b64839ab1 Mon Sep 17 00:00:00 2001
From: 王恒 <318726284@qq.com>
Date: 星期三, 13 八月 2025 14:17:33 +0800
Subject: [PATCH] '删除多引用的http解决计划管理报错问题'
---
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