|
|
|
@ -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({
|
|
|
|
|