1.路由发生改变调用方法
beforeRouteEnter(to,from,next){ next(vm => { if(from.name && (to.name!==from.name)){ vm.getlist() } }) },