We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望可以让某个 action 不计入浏览历史。
The text was updated successfully, but these errors were encountered:
要求不计入历史必然地址栏不能变化,是要这个效果吗?
在 2014年3月2日,17:48,GU Yiling [email protected] 写道: 希望可以让某个 action 不计入浏览历史。 — Reply to this email directly or view it on GitHub.
在 2014年3月2日,17:48,GU Yiling [email protected] 写道:
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
对的,就是类似 location.replace 的效果。
location.replace
对
locator.redirect被映射到Action.prototype上,带有对主Action和子Action的分别处理,除此之外的目的是让Action的可测性更高,不需要依赖ER框架就能测试
locator.redirect
Action.prototype
同理,我认为replace也需要放在Action.prototype上,那么:
replace
redirect
{ global: true }
this.redirect(url, { replace: true, global: true })
现阶段可以直接用controller.renderAction(url)来完成你要的功能,后续我还是需要仔细设计一下replace的实现,所以建议你先委屈着用controller
controller.renderAction(url)
controller
No branches or pull requests
希望可以让某个 action 不计入浏览历史。
The text was updated successfully, but these errors were encountered: