|
|
@ -8,7 +8,7 @@ import { IconLock, IconUser } from '@douyinfe/semi-icons'; |
|
|
|
import '../style.less' |
|
|
|
|
|
|
|
const Login = props => { |
|
|
|
const { dispatch, user, error, actions, apiRoot, isRequesting } = props |
|
|
|
const { dispatch, user, error, actions, apiRoot, isRequesting,webPepUrl } = props |
|
|
|
const form = useRef(); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
@ -23,6 +23,8 @@ const Login = props => { |
|
|
|
dispatch(push('/humanAffairs/archivesCenter/personnelArchives/personnelFiles')); |
|
|
|
localStorage.setItem('poms_open_sider', JSON.stringify(["archivesCenter"])) |
|
|
|
localStorage.setItem('poms_selected_sider', JSON.stringify(["humanAffairs"])) |
|
|
|
}else{ |
|
|
|
window.location.href = `${webPepUrl}/signin` |
|
|
|
} |
|
|
|
}, [user]) |
|
|
|
|
|
|
@ -110,7 +112,8 @@ function mapStateToProps (state) { |
|
|
|
error: auth.error, |
|
|
|
actions: global.actions, |
|
|
|
apiRoot: global.apiRoot, |
|
|
|
isRequesting: auth.isRequesting |
|
|
|
isRequesting: auth.isRequesting, |
|
|
|
webPepUrl: global.webPepUrl |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|