在成功登录后,如何将用户重定向到不同的布局模板的最佳实践是什么?(即使用accounts-ui和Iron.Router中的{{> loginButtons}}包含运算符)
发布于 2015-07-21 04:22:05
可以在传递给Accounts.onLogin调用的函数中使用Accounts.onLogin(func)方法并调用Iron Router's Router.go(/*url path*/)方法。
https://stackoverflow.com/questions/31525130
复制相似问题