基于 React Router 的路由实例,用于在 RunJS 中通过代码进行导航。通常与 ctx.route、ctx.location 配合使用。
ctx.route
ctx.location
navigate
注意:ctx.router 仅在存在路由上下文的 RunJS 环境中可用(如页面内的 JSBlock、Flow 页面、事件流等);在纯后端或无路由的上下文(如工作流)中可能为空。
ctx.router