|
|
@ -139,7 +139,9 @@ class PathDetailIndex extends Component{
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
|
|
|
if (result.data.status == 407) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
detailInfoList:result.data,
|
|
|
|
detailInfoList:result.data,
|
|
|
@ -162,6 +164,9 @@ class PathDetailIndex extends Component{
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
|
|
|
if (result.data.status == 407) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
if(result.data.allow_visit===true){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
detailInfoList:result.data,
|
|
|
|
detailInfoList:result.data,
|
|
|
|