Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
1b2c6202
You need to sign in or sign up before continuing.
Commit
1b2c6202
authored
Jul 27, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
8d387ab5
Pipeline
#16459
passed with stages
in 1 minute and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
CommonLayout.jsx
src/layout/CommonLayout.jsx
+1
-0
Footer.jsx
src/layout/Footer.jsx
+8
-0
No files found.
src/layout/CommonLayout.jsx
View file @
1b2c6202
...
...
@@ -41,6 +41,7 @@ const CommonLayout = (props) => {
const
query
=
queryString
.
parse
(
props
.
location
.
search
);
const
keys
=
Object
.
keys
(
query
);
keys
.
length
>
0
&&
query
.
token
&&
localStorage
.
setItem
(
'token'
,
query
.
token
);
},
[]);
return
(
<
div
>
...
...
src/layout/Footer.jsx
View file @
1b2c6202
...
...
@@ -37,6 +37,14 @@ const Footer = (props) => {
getData
()
})
},
[]);
useEffect
(()
=>
{
const
url
=
props
.
location
.
pathname
;
url
.
indexOf
(
'/bord/backlog'
)
>
-
1
&&
setCurrent
(
'backlog'
);
url
.
indexOf
(
'/bord/work'
)
>
-
1
&&
setCurrent
(
'work'
);
url
.
indexOf
(
'/bord/addressList'
)
>
-
1
&&
setCurrent
(
'addressList'
);
url
.
indexOf
(
'/bord/notice'
)
>
-
1
&&
setCurrent
(
'notice'
);
},
[
props
]);
return
(
<
div
id=
"footer"
className=
"footer"
>
<
TabBar
...
...
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