diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 9c3a81935..e4facf005 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -10,7 +10,7 @@ function PublicBanner(props){ const [ key , setKey ] = useState("1"); const { deptId } = props.match.params; const { pathname } = props.history.location; - const { data , adminUrl, temp } = props; + const { data:{sectionHomepageShow, sectionHomepageTitle, sectionProjectShow, sectionProjectTitle, sectionResourceShow, sectionResourceTitle, sectionCmsShow, sectionCmsTitle, sectionMemberShow, sectionMemberTitle, sectionHelperShow, sectionHelperTitle}, data , adminUrl, temp } = props; useEffect(()=>{ if(pathname){ @@ -53,13 +53,13 @@ function PublicBanner(props){ }
- 首页 - 开源项目 - 资源发布 - { tempConfig[temp].mainTitle } + {sectionHomepageShow && {sectionHomepageTitle}} + {sectionProjectShow && {sectionProjectTitle}} + {sectionResourceShow && {sectionResourceTitle}} + {sectionCmsShow && {sectionCmsTitle}} {/* Sig小组 */} - { tempConfig[temp].member } - {data && data.helperShow === 1 && {data.helperTitle}} + {sectionMemberShow && { sectionMemberTitle }} + {sectionHelperShow && {data.sectionHelperTitle}} { adminUrl && {window.location.href=adminUrl}}>后台管理 }
diff --git a/src/forge/Information/Pages/help.jsx b/src/forge/Information/Pages/help.jsx index a46971fad..9d2ba6e18 100644 --- a/src/forge/Information/Pages/help.jsx +++ b/src/forge/Information/Pages/help.jsx @@ -209,7 +209,7 @@ function ProjectSource(props) { return (
-

{data && data.helperTitle}

+

{data && data.sectionHelperTitle}

{ wikiList && (wikiList.length > 0 ? diff --git a/src/forge/Information/Pages/main.jsx b/src/forge/Information/Pages/main.jsx index a1027ccc8..68cc8fa38 100644 --- a/src/forge/Information/Pages/main.jsx +++ b/src/forge/Information/Pages/main.jsx @@ -24,7 +24,7 @@ function Main(props){ const [ isSpin , setIsSpin ] = useState(true); const [ newCateId , setNewCateId ] = useState(undefined); const { deptId , cateId } = props.match.params; - const { id, temp, role, history } = props; + const { id, temp, role, history, sectionCmsTitle } = props; const menu = ( @@ -121,7 +121,7 @@ function Main(props){
-

{tempConfig[temp].mainTitle}

+

{sectionCmsTitle}

{role && role.role !== "None" &&
{role.role === "Member" && } { memberStatus === memberStatusEnum.applying &&
您的申请已提交,请耐心等待管理员审核!
} diff --git a/src/forge/Information/index.jsx b/src/forge/Information/index.jsx index 599fdbd01..7b8e96653 100644 --- a/src/forge/Information/index.jsx +++ b/src/forge/Information/index.jsx @@ -177,7 +177,7 @@ function Index(props){ ( -
+
)} > ( - + )} > ( - + )} > ( - + )} > ( -
+
)} > {data && data.helperShow === 1 &&