|
|
@ -530,20 +530,22 @@ class Coursesleftnav extends Component{
|
|
|
|
{name:value}).then((result)=>{
|
|
|
|
{name:value}).then((result)=>{
|
|
|
|
if(result!=undefined){
|
|
|
|
if(result!=undefined){
|
|
|
|
if(result.data.status===0){
|
|
|
|
if(result.data.status===0){
|
|
|
|
// window.location.reload()
|
|
|
|
|
|
|
|
// this.updasaveNavmoda()
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
notification.open({
|
|
|
|
notification.open({
|
|
|
|
message:"提示",
|
|
|
|
message:"提示",
|
|
|
|
description:result.data.message
|
|
|
|
description:result.data.message
|
|
|
|
});
|
|
|
|
});
|
|
|
|
trigger('updateNavSuccess')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(positiontype==="files"){
|
|
|
|
if(positiontype==="files"){
|
|
|
|
|
|
|
|
this.updasaveNavmoda()
|
|
|
|
|
|
|
|
trigger('updateNavSuccess')
|
|
|
|
window.location.href=`/courses/${coursesId}/file/${result.data.category_id}`;
|
|
|
|
window.location.href=`/courses/${coursesId}/file/${result.data.category_id}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(positiontype==="boards"){
|
|
|
|
if(positiontype==="boards"){
|
|
|
|
|
|
|
|
this.updasaveNavmoda()
|
|
|
|
|
|
|
|
trigger('updateNavSuccess')
|
|
|
|
window.location.href=`/courses/${coursesId}/boards/${result.data.category_id}`;
|
|
|
|
window.location.href=`/courses/${coursesId}/boards/${result.data.category_id}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|