dev_winse
杨树明 6 years ago
parent 1d46f243cf
commit fd65a24d5d

@ -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)
this.props.history.replace(urls);
} }
if(urls!=url){ if(urls!=url){
this.props.history.replace(urls); this.props.history.replace(urls);
} }
if(this.props.indexs===undefined){ // if(this.props.indexs===undefined){
this.props.history.replace(urls); //
} // }else{
//
// }
} }
maincontent=(item,key)=>{ maincontent=(item,key)=>{

Loading…
Cancel
Save