导航钩子

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

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

猜你喜欢

转载自blog.51cto.com/13550695/2462584