ember-simple-auth中的奇怪弃用

时间:2017-05-12 12:38:48

标签: ember-simple-auth

我正在使用ember-simple-auth, 最近我在测试中开始接受这个弃用[deprecation id: ember-simple-auth.configuration.routes]

我在config

中有这样的选项
'ember-simple-auth': {
        authenticationRoute: 'login',
        routeAfterAuthentication: '/',
        routeIfAlreadyAuthenticated: '/',
},

要修复此弃用,我需要为所有使用的路由指定此字段 相应的mixins?至于我的重复太多或我错过了什么?

1 个答案:

答案 0 :(得分:0)

根据ember-simple-auth作者

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

details