Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 16, 2018
1 parent 4893296 commit f9f8eb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layouts/BasicLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
(
Expand All @@ -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>
Expand Down

0 comments on commit f9f8eb0

Please sign in to comment.