简体   繁体   中英

History with flow router meteor

使用铁路由器回到上一页就像history.back()一样简单,如何使用流路由器实现相同功能

Per the Flow router docs:

Normally, all the route changes made via APIs like FlowRouter.go and FlowRouter.setParams() add a URL item to the browser history.

So history.back() should work as expected.

if you use FlowRouter.withReplaceState(fn) then the history will not be recorded. See: https://github.com/kadirahq/flow-router#flowrouterwithreplacestatefn for more details

This is not the default thought.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM