Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ds147000
/
react-project-storage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4b08e1c4
authored
Jul 22, 2020
by
郑永杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆update
1 parent
72ee8940
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/router/router-view.js
src/view/login/index.js
src/router/router-view.js
View file @
4b08e1c
...
...
@@ -74,7 +74,7 @@ const RouterView = ({basisRoute = [], serviceRoute = [], userRoute = [], userSat
return
(
<>
{
userSatatus
?
{
!
userSatatus
?
<
Layout
>
<
Switch
>
{
basisRoute
.
map
(
e
=>
<
Route
path
=
{
e
.
url
}
exact
=
{
e
.
exact
}
component
=
{
Guards
(
e
.
component
)}
key
=
{
e
.
url
}
/>
)
}
...
...
@@ -84,7 +84,9 @@ const RouterView = ({basisRoute = [], serviceRoute = [], userRoute = [], userSat
<
/Layout
>
:
<
Switch
>
{
fullScreenRoute
.
map
(
e
=>
<
Route
path
=
{
e
.
url
}
exact
=
{
e
.
exact
}
component
=
{
Guards
(
e
.
component
)}
key
=
{
e
.
url
}
/>
)
}
{
fullScreenRoute
.
map
(
e
=>
<
Route
path
=
{
e
.
url
}
exact
=
{
e
.
exact
}
component
=
{
Guards
(
e
.
component
)}
key
=
{
e
.
url
}
/>
)
}
<
Route
component
=
{
error404
}
/
>
<
/Switch
>
}
...
...
src/view/login/index.js
View file @
4b08e1c
...
...
@@ -5,7 +5,7 @@ function Login() {
return
(
<
div
className
=
"login-box"
>
<
header
>
登陆页
<
/header
>
<
/div
>
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment