diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 53eb566e6..98ae10a51 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -157,13 +157,36 @@ class PathDetailIndex extends Component{ if(result.data.allow_visit===true){ this.setState({ detailInfoList:result.data, - items: getItems(result.data.members.length), + // items: getItems(result.data.members.length), }) } }).catch((error)=>{ console.log(error); }) + + + let righturl="/paths/"+pathid+"right_banner.json"; + axios.get(righturl).then((result)=>{ + if (result.data.status === 407 || result.data.status === 401) { + debugger + return; + } + + if (result.data.status === 403) { + debugger + // window.location.href = "/403"; + return; + } + + this.setState({ + // detailInfoList:result.data, + items: getItems(result.data.members.length), + }) + + }).catch((error)=>{ + console.log(error); + }) } updatadetailInfoList=()=>{ diff --git a/public/react/src/modules/paths/ShixunPathCard.js b/public/react/src/modules/paths/ShixunPathCard.js index 416cef28a..f4fb61776 100644 --- a/public/react/src/modules/paths/ShixunPathCard.js +++ b/public/react/src/modules/paths/ShixunPathCard.js @@ -22,25 +22,7 @@ class ShixunPathCard extends Component{ return(