流路由器流星的历史



使用iron路由器返回上一页就像history.back()如何使用流路由器实现相同的功能

根据Flow路由器文档:

通常,所有通过FlowRouter.go和FlowRouter.setParams()将URL项添加到浏览器历史记录中。

因此history.back()应该按预期工作。

如果使用FlowRouter.withReplaceState(fn),则不会记录历史记录。请参阅:https://github.com/kadirahq/flow-router#flowrouterwithreplacestatefn有关更多详细信息,

这不是默认的想法。

最新更新