forked from Gitlink/forgeplus-react
专区-超算中心-课程实训
This commit is contained in:
parent
498cc9835f
commit
f04d90d8a9
|
|
@ -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 && <Menu.Item key={"3"}><Link to={`/zone/${deptId}/source`}><img src={require(`../img/${temp}Menu3.png`)} alt="" width="33px" />{sectionResourceTitle}</Link></Menu.Item>}
|
||||
{sectionCmsShow && <Menu.Item key={"4"}><Link to={`/zone/${deptId}/news`}><img src={require(`../img/${temp}Menu4.png`)} alt="" width="32px" />{sectionCmsTitle}</Link></Menu.Item>}
|
||||
{/* <Menu.Item key={"5"}><img src={Menu5} alt="" width="27px"/>Sig小组</Menu.Item> */}
|
||||
{isNSCC && <Menu.Item key={"10"}><Link to={`/zone/${deptId}/lessons`}><img src={require(`../img/${temp}Menu10.png`)} alt="" width="36px" />课程实训</Link></Menu.Item>}
|
||||
{sectionMemberShow && <Menu.Item key={"6"}><Link to={`/zone/${deptId}/VIP`}><img src={require(`../img/${temp}Menu6.png`)} alt="" width="36px" />{sectionMemberTitle}</Link></Menu.Item>}
|
||||
{sectionHelperShow && <Menu.Item key={"8"}><Link to={`/zone/${deptId}/help`}><img src={require(`../img/${temp}Menu8.png`)} alt="" width="36px" />{data.sectionHelperTitle}</Link></Menu.Item>}
|
||||
{adminUrl && <Menu.Item key={"7"}><a onClick={() => { window.location.href = adminUrl }}><img src={require(`../img/${temp}Menu7.png`)} alt="" width="34px" />后台管理</a></Menu.Item>}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||
function Lessons({src="https://gitlink.educoder.net/"}){
|
||||
|
||||
return(
|
||||
<div className='lessonsdiv' style={{height:"100vh"}}>
|
||||
<div className='lessonsdiv' style={{height:"1592px"}}>
|
||||
<iframe
|
||||
id={"lessons"}
|
||||
width="100%"
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Loading…
Reference in New Issue