标签:=== outer path == from ext lse out vue
router.beforeEach((to, from, next) => { //拦截指定路由 if(to.path === ‘/home‘){ //todo }else{ scrollTo(0, 0); next(); } })
Vue路由拦截
原文地址:https://www.cnblogs.com/223zzm/p/11747116.html