From 31dae96d9d34335d69f738aa6e7e23b9da4f84ec Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期六, 22 六月 2024 15:33:37 +0800 Subject: [PATCH] 审核接口更改 --- src/utils/request.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index fd457f9..b939337 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); -- Gitblit v1.9.1