yangbo5207 / everyday

Something I learn every day.
5 stars 0 forks source link

axios 如何查看axios请求返回的错误对象信息 #68

Open yangbo5207 opened 7 years ago

yangbo5207 commented 7 years ago

http://stackoverflow.com/questions/38798451/how-to-catch-and-handle-error-422-response-redux-axios

xxxx
.catch(error => {
    console.log(error.response)
})