diff --git a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js index 7698dfa90..9d50426e8 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js @@ -553,19 +553,28 @@ class Coursesleftnav extends Component{ // notification.open({ // message: "删除成功", // }); - window.location.href = url; + + // this.props.history.replace(url); + window.location.href = url; } - deletenavchilds=(url)=>{ + deletenavchilds=(url,mainurl)=>{ + axios.delete(url).then((result)=>{ if(result.data.status===0){ - this.updatadeleteSecondary(result.data.right_url) + + if(mainurl===undefined){ + this.updatadeleteSecondary(result.data.right_url) + }else{ + this.updatadeleteSecondary(mainurl) + } + } }).catch((error)=>{ console.log(error) }) } - deleteSecondary=(e,type,id)=>{ + deleteSecondary=(e,type,id,mainurl)=>{ e.stopPropagation();//阻止冒泡 if(type===1){ let url="/course_second_categories/"+id+".json" @@ -593,7 +602,7 @@ class Coursesleftnav extends Component{ ModalsType:true, Modalstopval:"该目录下的内容将被移动到父目录,", ModalsBottomval:"是否确认删除?", - ModalSave:()=>this.deletenavchilds(url), + ModalSave:()=>this.deletenavchilds(url,mainurl), }) } @@ -726,7 +735,7 @@ class Coursesleftnav extends Component{ {item.type==="course_group"?
非成员不能访问
- + {/**/} + {/*target="_blank"*/} { item.is_public===1&&item.id===1309? diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js index d01c8d986..a9eddaa87 100644 --- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js +++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js @@ -211,15 +211,15 @@ class ShixunModal extends Component{ this.changeTag("all")} className={ type==="all" ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部 - { - shixunmodallist && shixunmodallist.tags.map((item,key)=>{ - return( -© 2019 EduCoder湘ICP备17009477号Trustie & IntelliDE inside.
++ © 2019 EduCoder + 湘ICP备17009477号 + + 湘公网安备43019002000962号 + + Trustie & IntelliDE inside. 版权所有 湖南智擎科技有限公司 +