|
|
@ -214,13 +214,14 @@ const LayoutContainer = props => { |
|
|
|
dispatch(login({ token })).then(res => { |
|
|
|
if (res.type == 'LOGIN_SUCCESS') { |
|
|
|
const data = res.payload?.user || {} |
|
|
|
history.push('/humanAffairs/archivesCenter/personnelArchives/personnelFiles') |
|
|
|
localStorage.setItem('poms_open_sider', JSON.stringify(["archivesCenter"])) |
|
|
|
localStorage.setItem('poms_selected_sider', JSON.stringify(["humanAffairs"])) |
|
|
|
dispatch(actions.layout.initWebSocket({ ioUrl: apiRoot, token: data.token, hrUserId: data.hrUserInfo && hrUserInfo.id })) |
|
|
|
dispatch(actions.humanAffairs.getUserResource(res.payload.user.id)).then(res => { |
|
|
|
if (res.success) { |
|
|
|
sessionStorage.setItem('userResource', JSON.stringify(res.payload.data)) |
|
|
|
history.push('/humanAffairs/archivesCenter/personnelArchives/personnelFiles') |
|
|
|
window.location.reload() |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|