How to set param when use router.navigate


#1

route:
path: ‘/leave/:leaveId’,
componentUrl: ‘wx/view?leaveId={{leaveId}}’

js:
view.router.navigate("/leave/:leaveId");

how can i set the :leaveId value in navigate?


#2

For example:

view.router.navigate("/leave/3");

will set leaveId to 3


#3

thanks, solve it already