Browse Source

fix #710

pull/731/head
jim 8 years ago
parent
commit
f9f8eb00df
  1. 10
      src/layouts/BasicLayout.js

10
src/layouts/BasicLayout.js

@ -174,6 +174,11 @@ class BasicLayout extends React.PureComponent {
<Content style={{ margin: '24px 24px 0', height: '100%' }}>
<div style={{ minHeight: 'calc(100vh - 260px)' }}>
<Switch>
{
redirectData.map(item =>
<Redirect key={item.from} exact from={item.from} to={item.to} />
)
}
{
getRoutes(match.path, routerData).map(item =>
(
@ -188,11 +193,6 @@ class BasicLayout extends React.PureComponent {
)
)
}
{
redirectData.map(item =>
<Redirect key={item.from} exact from={item.from} to={item.to} />
)
}
<Redirect exact from="/" to={bashRedirect} />
<Route render={NotFound} />
</Switch>

Loading…
Cancel
Save