小编Ner*_*min的帖子

在Ember中进行身份验证后路由

根据文档,我应该在我的config/environment.js文件中放置routeAfterAuthentication.

我的environment.js包含以下内容:

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'client',
    environment: environment,
    baseURL: '',
    locationType: 'auto',
    routeAfterAuthentication: 'dashboard',
...
Run Code Online (Sandbox Code Playgroud)

但是,它仍未被重定向到仪表板路由并显示未定义索引路由.

我在这里错过了什么吗?

authentication ember.js

0
推荐指数
1
解决办法
186
查看次数

标签 统计

authentication ×1

ember.js ×1