diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 3d5484395..2b02fc3e8 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -33,6 +33,7 @@ function PublicBanner(props) { const vip = /[A-Za-z0-9]{0,}\/VIP/g; const help = /[A-Za-z0-9]{0,}\/help/g; const dataset = /[A-Za-z0-9]{0,}\/dataset/g; + const lesson = /[A-Za-z0-9]{0,}\/lessons/g; if (pathname === `/zone/${deptId}`) { setKey("1"); } @@ -53,6 +54,8 @@ function PublicBanner(props) { } else if (dataset.test(pathname)) { setKey("9"); + }else if(lesson.test(pathname)) { + setKey("10"); } } }, [pathname]) @@ -154,6 +157,7 @@ function PublicBanner(props) { {sectionResourceShow && {sectionResourceTitle}} {sectionCmsShow && {sectionCmsTitle}} {/* Sig小组 */} + {isNSCC && 课程实训} {sectionMemberShow && {sectionMemberTitle}} {sectionHelperShow && {data.sectionHelperTitle}} {adminUrl && { window.location.href = adminUrl }}>后台管理} diff --git a/src/forge/Information/Pages/lessons.jsx b/src/forge/Information/Pages/lessons.jsx index b2d81b635..1b21743a5 100644 --- a/src/forge/Information/Pages/lessons.jsx +++ b/src/forge/Information/Pages/lessons.jsx @@ -3,7 +3,7 @@ import React from 'react'; function Lessons({src="https://gitlink.educoder.net/"}){ return( -
+