accessing store from router file vue code example Example: how to access router from the store vue import router from '@/router'