axios请求拦截错误处理中Promise.reject(error)未返回

pull/488/head
桓宪柱 2024-07-28 11:08:13 +08:00
parent d88707b306
commit 05a6c4f288
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
)