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
57767505
Commit
57767505
authored
Jan 09, 2018
by
Andreas Cederström
Committed by
ddcat1115
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirect from /user to /user/login (#632)
parent
c036c862
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+6
-5
No files found.
src/layouts/UserLayout.js
View file @
57767505
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Link
,
Route
}
from
'
dva/router
'
;
import
{
Link
,
R
edirect
,
Switch
,
R
oute
}
from
'
dva/router
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
{
Icon
}
from
'
antd
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
...
@@ -47,8 +47,8 @@ class UserLayout extends React.PureComponent {
...
@@ -47,8 +47,8 @@ class UserLayout extends React.PureComponent {
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
desc
}
>
Ant
Design
是西湖区最具影响力的
Web
设计规范
<
/div
>
<
div
className
=
{
styles
.
desc
}
>
Ant
Design
是西湖区最具影响力的
Web
设计规范
<
/div
>
<
/div
>
<
/div
>
{
<
Switch
>
getRoutes
(
match
.
path
,
routerData
).
map
(
item
=>
{
getRoutes
(
match
.
path
,
routerData
).
map
(
item
=>
(
(
<
Route
<
Route
key
=
{
item
.
key
}
key
=
{
item
.
key
}
...
@@ -57,8 +57,9 @@ class UserLayout extends React.PureComponent {
...
@@ -57,8 +57,9 @@ class UserLayout extends React.PureComponent {
exact
=
{
item
.
exact
}
exact
=
{
item
.
exact
}
/
>
/
>
)
)
)
)}
}
<
Redirect
exact
from
=
"
/user
"
to
=
"
/user/login
"
/>
<
/Switch
>
<
GlobalFooter
className
=
{
styles
.
footer
}
links
=
{
links
}
copyright
=
{
copyright
}
/
>
<
GlobalFooter
className
=
{
styles
.
footer
}
links
=
{
links
}
copyright
=
{
copyright
}
/
>
<
/div
>
<
/div
>
<
/DocumentTitle
>
<
/DocumentTitle
>
...
...
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