From 51e68c7f1b838cbb6ade9345d8b5139d2ba7fee8 Mon Sep 17 00:00:00 2001
From: 王恒 <318726284@qq.com>
Date: 星期五, 29 八月 2025 19:21:07 +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