【问题标题】:Strange deprecation in ember-simple-authember-simple-auth 中奇怪的弃用
【发布时间】:2017-05-12 12:38:48
【问题描述】:

我正在使用ember-simple-auth, 最近我开始在我的测试中收到这种弃用[deprecation id: ember-simple-auth.configuration.routes]

我在配置中有这样的选项

'ember-simple-auth': {
        authenticationRoute: 'login',
        routeAfterAuthentication: '/',
        routeIfAlreadyAuthenticated: '/',
},

要解决此弃用问题,我是否需要为所有使用的路由指定此字段 对应的mixin?至于我,是重复太多还是我遗漏了什么?

【问题讨论】:

    标签: ember-simple-auth


    【解决方案1】:

    ember-simple-auth作者

    您确实应该使用 ESA mixin 为每个路由指定路由字段

    details

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多