铁路由器notFound模板不在流星中工作

lin*_*ran 1 javascript meteor meteorite iron-router

// main.html

<template name="layout">
    {{yield}}
</template>

<template name="notFound">
    notFound
</template>

// router.js

Router.configure({
    layoutTemplate: "layout",
    loadingTemplate: "loading",
    notFoundtemplate: "notFound"
});

Router.map(function() {

    this.route('home', {
        path: '/'
    });

});
Run Code Online (Sandbox Code Playgroud)

" http://hedcet.com:3000/ "完美运作

当我尝试在router.js中未定义的" http://hedcet.com:3000/x"(route/x)时,它在控制台中显示错误而不显示notFound模板

// console error

Uncaught Error: Oh no! No route found for path: "/x"
Run Code Online (Sandbox Code Playgroud)

你能提出任何解决方案吗?我想显示notFound模板,如果有任何尝试在流星中的非现有路径

Pep*_*L-G 7

你得到的't'应该是notFoundtemplate中的'T'.