Commit 7d9155d1 authored by 周宏民's avatar 周宏民
parents c98e7f28 0a80a2ca
Pipeline #90015 waiting for manual action with stages
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment