From 47f4b5a8ae72b4fadd39e1570e46de871e08c339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E5=A3=AB=E5=BC=BA?= <53844499+wen-shiqiang@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:39:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index dd66ddd..efaf913 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -28,7 +28,7 @@ axiosInstance.interceptors.response.use( (res: AxiosResponse) => { const url = res.config.url || '' abortControllerMap.delete(url) - return res + return res.data }, (error: AxiosError) => { console.log('err: ' + error) // for debug