From 8d27f95cf6e3b3289e90828ecef72e0c74f804b0 Mon Sep 17 00:00:00 2001 From: wangyuhang <139@qq.com> Date: 星期五, 18 七月 2025 15:42:47 +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