Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
91d643a3
Commit
91d643a3
authored
Apr 01, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 退出登录重复触发修改
parent
04d65916
Pipeline
#47157
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
app.js
src/app.js
+13
-6
No files found.
src/app.js
View file @
91d643a3
...
...
@@ -29,12 +29,19 @@ const initLocale = () => {
initGlobalConfig
();
initLocale
();
const
unlisten
=
history
.
listen
(
location
=>
{
if
(
location
.
pathname
.
indexOf
(
'/civbase/user/login'
)
>
-
1
)
{
console
.
log
(
'init config'
)
initGlobalConfig
();
}
});
const
unlisten
=
(
function
()
{
let
prePathname
=
''
;
return
history
.
listen
(
location
=>
{
if
(
location
.
pathname
.
indexOf
(
'/civbase/user/login'
)
>
-
1
&&
location
.
pathname
!==
prePathname
)
{
console
.
log
(
'init config'
)
initGlobalConfig
();
}
prePathname
=
location
.
pathname
;
});
})();
event
.
on
(
'event:logout'
,
()
=>
{
store
.
dispatch
(
actionCreators
.
logout
())
...
...
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