|
|
@ -722,15 +722,19 @@ class Coursesleftnav extends Component{
|
|
|
|
let {url}=this.state;
|
|
|
|
let {url}=this.state;
|
|
|
|
if (key === this.props.indexs) {
|
|
|
|
if (key === this.props.indexs) {
|
|
|
|
this.props.unlocationNavfun(undefined)
|
|
|
|
this.props.unlocationNavfun(undefined)
|
|
|
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.props.unlocationNavfun(key)
|
|
|
|
this.props.unlocationNavfun(key)
|
|
|
|
}
|
|
|
|
|
|
|
|
if(urls!=url){
|
|
|
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.indexs===undefined){
|
|
|
|
if(urls!=url){
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// if(this.props.indexs===undefined){
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
maincontent=(item,key)=>{
|
|
|
|
maincontent=(item,key)=>{
|
|
|
|