|
|
|
@ -139,7 +139,7 @@ class PathDetailIndex extends Component{
|
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
if (result.data.status == 407) {
|
|
|
|
|
if (result.data.status == 407 || result.data.status == 401) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
@ -164,9 +164,11 @@ class PathDetailIndex extends Component{
|
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
if (result.data.status == 407) {
|
|
|
|
|
// TODO 403 让后台返回status 403 比较好
|
|
|
|
|
if (result.data.status == 407 || result.data.status == 401) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
detailInfoList:result.data,
|
|
|
|
|