有关配置路由的注意事项

2020-03-03  本文已影响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> ///有空格  注意不能有空格,否则页面打开没有内容。
上一篇 下一篇

猜你喜欢

热点阅读