beforeRouteEnter获取this beforeRouteEnter(to,from,next) { next(vm => { vm.getparams //相当于 this.getparams }) },