vue-router多级路由变化,watch无法监听
1.路由发生改变调用方法
beforeRouteEnter(to,from,next){ next(vm => { if(from.name && (to.name!==from.name)){ vm.getlist() } }) },
1.路由发生改变调用方法
beforeRouteEnter(to,from,next){ next(vm => { if(from.name && (to.name!==from.name)){ vm.getlist() } }) },