路由配置路径中:beforeenter:(to,from,next)=>{
to:到那个路径,from:来自哪个路径,next()[true/false],是否进入跳转的路径
}
组件中:beforeRouterEnter(to,from,next)=>{
}
路由配置路径中:beforeenter:(to,from,next)=>{
to:到那个路径,from:来自哪个路径,next()[true/false],是否进入跳转的路径
}
组件中:beforeRouterEnter(to,from,next)=>{
}