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
3 years ago
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 = () => {
...
@@ -29,12 +29,19 @@ const initLocale = () => {
initGlobalConfig
();
initGlobalConfig
();
initLocale
();
initLocale
();
const
unlisten
=
history
.
listen
(
location
=>
{
const
unlisten
=
(
function
()
{
if
(
location
.
pathname
.
indexOf
(
'/civbase/user/login'
)
>
-
1
)
{
let
prePathname
=
''
;
console
.
log
(
'init config'
)
return
history
.
listen
(
location
=>
{
initGlobalConfig
();
if
(
}
location
.
pathname
.
indexOf
(
'/civbase/user/login'
)
>
-
1
&&
});
location
.
pathname
!==
prePathname
)
{
console
.
log
(
'init config'
)
initGlobalConfig
();
}
prePathname
=
location
.
pathname
;
});
})();
event
.
on
(
'event:logout'
,
()
=>
{
event
.
on
(
'event:logout'
,
()
=>
{
store
.
dispatch
(
actionCreators
.
logout
())
store
.
dispatch
(
actionCreators
.
logout
())
...
...
This diff is collapsed.
Click to expand it.
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