dev_cs
杨树林 6 years ago
parent 9c30d743af
commit c910e9962c

@ -296,11 +296,11 @@ class CoursesIndex extends Component{
componentDidMount(){
// this.updataleftNav()
this.historyArray = [location.pathname];
this.historyArray = [window.location.pathname];
this.props.history.listen( location => {
console.log(location);
this.historyArray.unshift(location.pathname);
this.historyArray.unshift(window.location.pathname);
this.historyArray.length = 2;
//Do your stuff here
});

Loading…
Cancel
Save