Skip to content

Commit 32cdef0

Browse files
author
chenghao
committed
fix history.push
1 parent 2b7c02a commit 32cdef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/HeaderCustom.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HeaderCustom extends Component {
6565
};
6666
logout = () => {
6767
localStorage.removeItem('user');
68-
this.props.router.push('/login')
68+
this.props.history.push('/login')
6969
};
7070
popoverHide = () => {
7171
this.setState({

0 commit comments

Comments
 (0)