Home

Issue: 1934

How to get access to vuex/vue-router in plugins js-files

[issue link]

Have file for custom instance of axios in ~/plugins/axios.js
How to get access to store or router inside this file?
For example for correct handling 401-error and redirecting user to login-page with router.push of commiting mutation to store, which redirect user

P.S.: Nuxt 1.0.0-RC11

This question is available on Nuxt.js community (#c1726)