The function I need is updating the params in "to" route in a component's beforeRouteLeave hook.
Changing params properties in "to" argument does not work.
adding new route in next() callback will call beforeRouteLeave again.
According to the document, next() callback in beforeRouteLeave should only take a "false" argument or no argument. Do you know how to implement my requirement?