dev_forum
杨树明 5 years ago
parent d7b964d5d8
commit d03a46c512

@ -61,7 +61,7 @@ class Coursesleftnav extends Component{
} }
// updataleftNav=()=>{ // updataleftNav=()=>{
// debugger //
// let id=this.props.match.params.coursesId; // let id=this.props.match.params.coursesId;
// let url ="/courses/"+id+"/left_banner.json" // let url ="/courses/"+id+"/left_banner.json"
// axios.get(url).then((response) => { // axios.get(url).then((response) => {
@ -269,14 +269,14 @@ class Coursesleftnav extends Component{
} }
selectnavid=(e,key,id,type,urls,index)=>{ selectnavid=(e,key,id,type,urls,index)=>{
debugger
let {url}=this.state; let {url}=this.state;
if(urls!=url){ if(urls!=url){
debugger
this.props.history.replace(urls); this.props.history.replace(urls);
this.props.updataleftNavfun(); this.props.updataleftNavfun();
}else{ }else{
debugger
if (key === this.props.indexs) { if (key === this.props.indexs) {
this.props.unlocationNavfun(undefined) this.props.unlocationNavfun(undefined)
} else { } else {
@ -681,7 +681,7 @@ debugger
} }
showsandians=(e,key,urls,num)=> { showsandians=(e,key,urls,num)=> {
debugger
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)

Loading…
Cancel
Save