0👍
✅
You need to pass response
to the function
:
axios.interceptors.response.use(function (response) {
// Do something with response data
return response;
}, function (error) {
// Do something with response error
return Promise.reject(error);
});
More information here: Axios
Source:stackexchange.com