From e833d61c6bb842da28b6a393a8be4948f0f0c4b2 Mon Sep 17 00:00:00 2001 From: wyy <3234929097@qq.com> Date: Mon, 10 Apr 2023 13:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BAexcel?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/httpRequest.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index 86805b3..971550a 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -28,6 +28,11 @@ http.interceptors.request.use(config => { * 响应拦截 */ http.interceptors.response.use(response => { + // blob 格式处理 + if (response.request.responseType === 'blob') { + return response + } + const res = response.data // 00000 请求成功 if (res.code === '00000') {