相关疑难解决方法(0)

Meteor v 1.0和Iron:路由器

自从将Meteor升级到1.0版以来,是否有其他人从Iron-Router收到以下错误?

如果您知道如何解决此问题,请在此处发布.

路线调度从未呈现.你忘记打电话this.next()onBeforeAction

Router.map(function () {
    Router.route('profileShow', {

        waitOn: function () {
            if (Meteor.user()) {
                Meteor.subscribe('userData');
            } else {
                this.next();
            }
        },

        data: function () {
            if (Meteor.user()) {
                return {profile: Meteor.user().profile};
            }
        }
    });
});
Run Code Online (Sandbox Code Playgroud)

meteor iron-router

20
推荐指数
1
解决办法
8022
查看次数

标签 统计

iron-router ×1

meteor ×1