[Vuejs]-How can I implement Interceptor with this axios code

1👍

If there is a logic you would like to run on every request, you should use an interceptor (check interceptors section in axios documentation. This is especially useful for auth situations, for instance if your api returns token invalid, you should redirect user to login page.

Leave a comment