react-router push到新页面以后是一片空白,要再刷新一下才有内容
Router是:
<Router history={browserHistory}>
<Switch>
{
routes.map((item, index) => {
return <Route {...item} key={index} />
})
}
</Switch>
</Router>
routes是:
const route = [
{
path: '/',
component: Login,
exact: true,
strict: true,
sensitive: true,
role: 99999,
},
{
path: '/index',
component: Index,
exact: true,
strict: true,
sensitive: true,
role: 12,
}
]
降
history
包版本从5.0
为4.10
解决了参考:https://github.com/remix-run/...