<Switch>
<Route path="/" exact component={Download}/>
<Route path="/download" component={Downloads}/>
<Route component={Download}/>
</Switch>
路由输错了,希望他跳回首页 或者 404页面; 那么写在最后,不写path,直接匹配component即可