Created
October 4, 2017 08:38
-
-
Save NickyYo/4990e3fec2b628a6d8f7784c0bbd17bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axios.interceptors.response.use( | |
function(response) { | |
return response | |
}, | |
function (error) { | |
if (error.response && error.response.data && error.response.data.location) { | |
console.log('error.response', error.response); | |
} | |
return Promise.reject(error); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment