happyWang

技术人的博客, 说技术人的事

实现react-router下,非法路径访问跳转首页

在react-router下,基于Switch,可以实现针对未匹配的路由调用指定的component来展现 <Switch> <Route exact path="/" component={Home}/> <Rout..