流星铁路由器错误松弛克隆

时间:2016-06-17 16:21:43

标签: javascript meteor iron-router

我使用本教程https://scotch.io/tutorials/building-a-slack-clone-in-meteor-js-part-4-channels-and-chat-rooms

创建了一个使用meteor的松弛克隆

我不断向我发出这个错误:

  

路线调度从未呈现过。您是否忘记在onBeforeAction中调用this.next()?'

这是我的代码:

Router.configure({
  layoutTemplate: 'app'
});

Router.route('/:channel', function () {
  Session.set('channel', this.params.channel);
  this.render('messages');
})

Router.route('/', function () {
  this.redirect('/general');
});

0 个答案:

没有答案