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
0a80a2ca
Commit
0a80a2ca
authored
Jun 20, 2024
by
xuchaozou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 基座增加子包退出登录通信
parent
ec3c175c
Pipeline
#90014
waiting for manual action with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
SecurityLayout.js
src/layouts/SecurityLayout.js
+15
-0
No files found.
src/layouts/SecurityLayout.js
View file @
0a80a2ca
...
...
@@ -7,6 +7,7 @@ import _ from 'lodash';
import
{
stringify
}
from
'querystring'
;
import
{
store
,
helpers
}
from
'@wisdom-utils/utils'
;
import
{
ValidDefaultPWDContainer
}
from
'@/components/Container'
;
import
{
logout
}
from
'@/containers/App/store/actions'
;
import
{
initSaveMicroApps
}
from
'../micro'
;
class
SecurityLayout
extends
React
.
Component
{
...
...
@@ -19,6 +20,20 @@ class SecurityLayout extends React.Component {
isReady
:
true
,
});
document
.
title
=
this
.
props
.
global
.
title
;
if
(
window
.
share
&&
window
.
share
.
event
)
{
window
.
share
.
event
.
on
(
'event:logoutPackage'
,
this
.
handleLogoutPackage
);
}
}
componentWillUnmount
()
{
if
(
window
.
share
&&
window
.
share
.
event
)
{
window
.
share
.
event
.
removeListener
(
'event:logoutPackage'
,
this
.
handleLogoutPackage
);
}
}
// 退出登录
handleLogoutPackage
()
{
logout
&&
logout
();
}
componentWillReceiveProps
(
nextProps
)
{
...
...
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