|
|
|
@ -139,7 +139,9 @@ 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) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
detailInfoList:result.data,
|
|
|
|
@ -162,6 +164,9 @@ 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) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
detailInfoList:result.data,
|
|
|
|
|