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