退出登录不刷新

dev_hjm_a
hjm 5 years ago
parent ce4c724fb4
commit bb516db7dc

@ -183,7 +183,7 @@ class NewHeader extends Component {
})
// let path="/";
// this.props.history.push(path);
broadcastChannelPostMessage('refreshPage')
// broadcastChannelPostMessage('refreshPage')
window.location.href ="/login"
message.success('退出成功');
}
@ -339,7 +339,7 @@ class NewHeader extends Component {
// this.setState({
// isRender:true
// })
broadcastChannelPostMessage('refreshPage')
// broadcastChannelPostMessage('refreshPage')
window.location.href = "/";
}
}).catch((error) => {

Loading…
Cancel
Save