0
路由about-us
不起作用。只有当我在路由Country
上附加一些前缀时才有效。我该如何解决它。谢谢。路由静态不起作用
<Route path="/" component={App}>
<IndexRoute components={Home}/>
<Route path=":country" components={Country}/>
<Route path=":country/:city" components={City}/>
<Route path="*" components={NotMatch}/>
<Route path="about-us" components={AboutUs}/>
</Route>
检查更新的答案:) –