axios请求拦截错误处理中Promise.reject(error)未返回
parent
d88707b306
commit
05a6c4f288
|
@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue