1
鉴于这一阵营路由器配置:URL查询字符串不匹配反应路由器的路由
<Router history={browserHistory}>
<Route path="/farm/:type?period=:period" component={Farm} />
<Route path="/pen/:penId" component={Pen} />
<Route path="/pen/:penId/cow/:cowId" component={Cow} />
<Route path="*" component={Farm} />
</Router>
为什么http://localhost:8080/farm/average?period=day
仅符合包罗万象的路线,而不是第一个?