Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_cs
cxt 6 years ago
commit e98ae780f2

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

Loading…
Cancel
Save