本来beforeRouteLeave(to: any, from: any, next: any)这样写的,
偶尔一天,提示to,from,没有用到。
就改成beforeRouteLeave(next: any)了,然后next is not a function,参数顺序问题啦
本来beforeRouteLeave(to: any, from: any, next: any)这样写的,
偶尔一天,提示to,from,没有用到。
就改成beforeRouteLeave(next: any)了,然后next is not a function,参数顺序问题啦