解决keep-alive三级甚至四级路由缓存失效问题
router.beforeResolve((to,from,next)=> {
if(to.matched && to.matched.length > 2) to.matched.splice(1,to.matched.length-2)
next()
})
router.beforeResolve((to,from,next)=> {
if(to.matched && to.matched.length > 2) to.matched.splice(1,to.matched.length-2)
next()
})