Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
f9f8eb00
Commit
f9f8eb00
authored
Jan 16, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #710
parent
4893296e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+5
-5
No files found.
src/layouts/BasicLayout.js
View file @
f9f8eb00
...
@@ -174,6 +174,11 @@ class BasicLayout extends React.PureComponent {
...
@@ -174,6 +174,11 @@ class BasicLayout extends React.PureComponent {
<
Content
style
=
{{
margin
:
'
24px 24px 0
'
,
height
:
'
100%
'
}}
>
<
Content
style
=
{{
margin
:
'
24px 24px 0
'
,
height
:
'
100%
'
}}
>
<
div
style
=
{{
minHeight
:
'
calc(100vh - 260px)
'
}}
>
<
div
style
=
{{
minHeight
:
'
calc(100vh - 260px)
'
}}
>
<
Switch
>
<
Switch
>
{
redirectData
.
map
(
item
=>
<
Redirect
key
=
{
item
.
from
}
exact
from
=
{
item
.
from
}
to
=
{
item
.
to
}
/
>
)
}
{
{
getRoutes
(
match
.
path
,
routerData
).
map
(
item
=>
getRoutes
(
match
.
path
,
routerData
).
map
(
item
=>
(
(
...
@@ -188,11 +193,6 @@ class BasicLayout extends React.PureComponent {
...
@@ -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
}
/
>
<
Redirect
exact
from
=
"
/
"
to
=
{
bashRedirect
}
/
>
<
Route
render
=
{
NotFound
}
/
>
<
Route
render
=
{
NotFound
}
/
>
<
/Switch
>
<
/Switch
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment