From 05a6c4f2883274cc1a27125f4e53540d23b4fb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=93=E5=AE=AA=E6=9F=B1?= <2754741241@qq.com> Date: Sun, 28 Jul 2024 11:08:13 +0800 Subject: [PATCH] =?UTF-8?q?axios=E8=AF=B7=E6=B1=82=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=E4=B8=ADPromise.reject(err?= =?UTF-8?q?or)=E6=9C=AA=E8=BF=94=E5=9B=9E?= 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 aed40908..aff542b0 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -81,7 +81,7 @@ service.interceptors.request.use( (error: AxiosError) => { // Do something with request error console.log(error) // for debug - Promise.reject(error) + return Promise.reject(error) } )