视频离开提示

dev_video
caicai8 5 years ago
parent 9a92e57ee1
commit b5312a9d0c

@ -340,7 +340,7 @@ class Coursesleftnav extends Component{
}) })
this.props.updataleftNavfun(); this.props.updataleftNavfun();
this.props.history.replace(urls); this.props.history.replace(urls);
e.stopPropagation();//阻止冒泡
} }
@ -811,26 +811,24 @@ class Coursesleftnav extends Component{
} }
showsandians=(e,key,urls,num,id,type,index)=> { showsandians=(e,key,urls,num,id,type,index)=> {
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.updataleftNavfun(); this.props.updataleftNavfun();
this.props.unlocationNavfun(key) this.props.unlocationNavfun(key)
this.props.history.replace(urls);
} }
if(urls!=url){ if(urls!=url){
this.props.updataleftNavfun(); this.props.updataleftNavfun();
this.props.history.replace(urls);
} }
this.setState({ this.setState({
selectnavid:true, selectnavid:true,
newselectnavid:id, newselectnavid:id,
url:urls, url:urls,
indexs:index indexs:index
}) })
this.props.history.replace(urls);
e.stopPropagation();//阻止冒泡
} }
maincontent=(item,key)=>{ maincontent=(item,key)=>{
@ -880,14 +878,10 @@ class Coursesleftnav extends Component{
//章节编辑 //章节编辑
Chapterediting=(e,id,url)=> { Chapterediting=(e,id,url)=> {
e.stopPropagation();//阻止冒泡 e.stopPropagation();//阻止冒泡
console.log(url);
console.log(id);
//页面刷新 //页面刷新
this.setState({ this.setState({
chapterupdate:true, chapterupdate:true,
}) })
// this.props.history.replace( url );
// this.props.comyslElearning(true);
}; };
setchapterupdatefalse =()=>{ setchapterupdatefalse =()=>{
this.setState({ this.setState({

Loading…
Cancel
Save