更新时间:2022-02-04 04:34:49
此路线:
FlowRouter.route('/', {
action() {
BlazeLayout.render('mainLayout', { content: 'mainLayout' });
},
});
无效,因为您正在将mainLayout
组件插入自身-嵌套的content
助手是问题所在.相反,您应该在content
中渲染另一个组件:
is not going to work because you are inserting the mainLayout
component into itself - the nested content
helper is the issue. Instead, you should be rendering a different component into content
:
BlazeLayout.render('mainLayout', { content: 'home' }); // or whatever component should be at "/"