流路由器流星的历史

时间:2016-05-15 20:39:51

标签: javascript meteor flow-router

使用铁路由器返回上一页就像 history.back() 如何使用流路由器

实现相同目的

1 个答案:

答案 0 :(得分:2)

根据Flow路由器文档:

  

通常,所有路由更改都是通过FlowRouter.go和   FlowRouter.setParams()将一个URL项添加到浏览器历史记录中。

所以[assembly: OwinStartupAttribute(typeof(CarWashApplication.Startup))] namespace App { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } } } 应该按预期工作。

如果您使用history.back(),则不会记录历史记录。 请参阅:https://github.com/kadirahq/flow-router#flowrouterwithreplacestatefn 了解更多详情

这不是默认的想法。