需求反馈跳转到论坛

This commit is contained in:
谢思 2025-11-16 21:26:26 +08:00
parent 0d11b95492
commit 1a3b4fee43
1 changed files with 7 additions and 1 deletions

View File

@ -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`);