配置全局前置路由守卫
判断三级路由的情况
如果有特殊条件,再改下
Router.beforeEach((to, from, next)=>{
if(to.matched && to.matched.length>2){
to.matched.splice(1,to.matched.length -2)
}
next()
})
配置全局前置路由守卫
判断三级路由的情况
如果有特殊条件,再改下
Router.beforeEach((to, from, next)=>{
if(to.matched && to.matched.length>2){
to.matched.splice(1,to.matched.length -2)
}
next()
})
803

被折叠的 条评论
为什么被折叠?