diff --git a/src/forge/Component/feedBack.jsx b/src/forge/Component/feedBack.jsx index 16f1f80c..ba29a132 100644 --- a/src/forge/Component/feedBack.jsx +++ b/src/forge/Component/feedBack.jsx @@ -22,7 +22,10 @@ $(window).scroll(function () { }); function SiderBar(props) { - const {location, history,user} = props; + const {location, history,user, mygetHelmetapi= {}} = props; + const {navbar=[]} = mygetHelmetapi; + const forumsList = navbar.filter(item=>item.link && item.link.includes("/forums")) + const forumsUrl = forumsList[0] && forumsList[0].link; const {search, pathname} = location; const [ data , setData ] = useState([]); const [ visible , setVisible ] = useState(false); @@ -83,6 +86,9 @@ function SiderBar(props) { // 意见反馈按钮点击事件 function feedBackClick(){ if(login){ + if(forumsUrl){ + return window.location.href=forumsUrl; + } setFeedBackModal(true); }else{ history.push(`/login?go_page=${pathname}?feedback`);