router-hook.js 176 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 const hook = (router) => { router.beforeEach((to, from, next) => { console.log(`${from.path}=>${to.path}`); return next(); }); }; export default hook;