router.beforeResolve((to,from,next)=> { if(to.matched && to.matched.length > 2) to.matched.splice(1,to.matched.length-2) next() })