美文网首页
有关配置路由的注意事项

有关配置路由的注意事项

作者: 冬天的_太阳 | 来源:发表于2020-03-03 09:55 被阅读0次

1. 不能有空格

You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored
    <Route path='/fa' component={father} ></Route>
    <Route path='/fa1' component={comon} ></Route>
    <Route path="/comon" component={comon}> </Route> ///有空格  注意不能有空格,否则页面打开没有内容。

相关文章

网友评论

      本文标题:有关配置路由的注意事项

      本文链接:https://www.haomeiwen.com/subject/tggflhtx.html