如何在Meteor中配置account-ui

时间:2017-03-26 02:53:28

标签: meteor meteor-accounts

我在我的meteor应用程序中使用了Account-ui-unstyled。我正在尝试让我的应用程序在loginButtons中单击注销时转到主页。

 // Here is the code for welcome page for user

     <template name="MemberWelcome">
      <h1>My Profile</h1>
      {{> loginButtons}}
      </template>

我该怎么做?

1 个答案:

答案 0 :(得分:0)

在帐户配置中设置homeRoute:

Accounts.ui.config({
  homeRoute: '/'
});

它应该有用。