Skip to content

Commit fde37b0

Browse files
YunaiVgitee-org
authored andcommitted
!488 axios请求拦截错误处理中Promise.reject(error)未返回
Merge pull request !488 from perterHUAN/fix
2 parents e6f2a62 + 05a6c4f commit fde37b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/axios/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ service.interceptors.request.use(
8181
(error: AxiosError) => {
8282
// Do something with request error
8383
console.log(error) // for debug
84-
Promise.reject(error)
84+
return Promise.reject(error)
8585
}
8686
)
8787

0 commit comments

Comments
 (0)