[Vuejs]-Axios Response data and Vue JS , Using the data

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

Leave a comment