阅读背景:

无法在onEnter挂钩中使用replace重定向到'/'

来源:互联网 

I have these two methods:

我有这两种方法:

  toLogin: function (nextState, replace) {
    if (!localStorage.get("token")) {
      return replace('/signin');
    }
  },
  toHome: function (nextState, replace) {
    if (localStorage.get("token")) {
      return replace('/');
    }
  }
  toLogi



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: