调整状态

dev_hs
杨树明 5 years ago
parent 51f1923c85
commit b60c55b6d0

@ -3443,4 +3443,8 @@ a.singlepublishtwo{
.ant-tooltip{
max-width: 100% !important;
}
.square-main p{
margin-bottom: 0 !important;
}

@ -242,7 +242,7 @@ class DetailCardsEditAndAdd extends Component{
//保存
clickShixunsaves=()=>{
debugger
let{stage_names,stage_descriptions,shixuns_listeditlist}=this.state;
let newstage_descriptions=stage_descriptions;

@ -200,7 +200,8 @@ class DetailTop extends Component{
})
this.setState({
MenuItemskey:keys,
courseslist:courseslist
courseslist:courseslist,
onVisibleChangestype:!this.state.onVisibleChangestype
})
}

@ -203,32 +203,9 @@ class PathDetailIndex extends Component{
}
updatadetailInfoList=()=>{
let pathid=this.props.match.params.pathId;
let url="/paths/"+pathid+".json";
axios.get(url).then((result)=>{
// TODO 403 让后台返回status 403 比较好
if (result.data.status == 407 || result.data.status == 401) {
debugger
return;
}
if (result.data.status === 403 ) {
debugger
// window.location.href = "/403";
return;
}
if(result.data.allow_visit===true){
this.setState({
detailInfoList:result.data,
items: getItems(result.data.members.length),
user_id:undefined,
})
}
}).catch((error)=>{
console.log(error);
})
this.getdatasindex();
}
clickNewsubscript=(val)=>{
if(val===0){
this.setState({

Loading…
Cancel
Save