我使用本教程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');
});