Po każdym router vue
router.afterEach(function(to , from ){
console.log(to , from)
})
Mohamad
router.afterEach(function(to , from ){
console.log(to , from)
})