导航钩子

全局路由就是在router下使用
router.beforeEachide

to:即将进入的对象
from:当前导航离开的导航对象
next:是一个函数,调用resolve,执行下一步函数

相关文章
相关标签/搜索