你的那啥呢 路由模式那个组件呢?
HashRouter
<HashRouter>
<Switch>
{routers.routers.map((v) => (
<Route key={v.path} path={v.path} exact={v.exact} component={v.component} />
))}
</Switch>
</HashRouter>
解决了,component中的C不能大写,我真的服了