Javascript 未捕获类型错误:无法读取属性';过境路线';空的

Javascript 未捕获类型错误:无法读取属性';过境路线';空的,javascript,ember.js,Javascript,Ember.js,您好,我正在为我的客户端应用程序使用ember。这是我在ember视图中的代码 当我想在kill操作中使用TransitionRoute时,它显示了上面的错误 我的路线是这样的 App.Router.map(function () { this.route('groups'); this.resource('group', { path: 'group/:uuid' }, function() { this.route('people'); this.route('veh

您好,我正在为我的客户端应用程序使用ember。这是我在ember视图中的代码

当我想在kill操作中使用TransitionRoute时,它显示了上面的错误

我的路线是这样的

App.Router.map(function () {
  this.route('groups');
  this.resource('group', { path: 'group/:uuid' }, function() {
    this.route('people');
    this.route('vehicles');
    this.route('reports');
    this.route('geofences');
  });
 });
目前,我处于子视图(group/:uuid/people)的路径上,有一次,如果我调用上述kill action的Tile视图,它将重定向到(groups)的parentRoute

App.TileView = Ember.View.extend({
actions:{

     kill: function() {
        var dfd = new $.Deferred();
        var t = this,resolveEntity = false;
        this.set('waitingOnDelete', true);

        //this.get('entity').kill().done(this.remove.bind(this));

        var pid = this.get('entity').id;
        this.get('entity').kill().then(function() {
            t.remove();
            if ((t.get('entityType') === 'association') && (DS.session.user_uuid === pid)) {
                resolveEntity = true;
                dfd.resolve(resolveEntity);
                if(resolveEntity){
                  t.get('controller').transitionToRoute('groups');
                }
            }
        });

    }
}
});