退出登录不刷新

dev_hjm_a
hjm 5 years ago
parent ce4c724fb4
commit bb516db7dc

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

Loading…
Cancel
Save