ico + 移除滚动事件
This commit is contained in:
parent
6fc441d7c5
commit
f2a660d595
Binary file not shown.
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 9.4 KiB |
|
@ -390,13 +390,13 @@ class NewHeader extends Component {
|
||||||
{
|
{
|
||||||
publicNav &&
|
publicNav &&
|
||||||
<a href={'https://www.ccf.org.cn/'} className={"fl pr15"}>
|
<a href={'https://www.ccf.org.cn/'} className={"fl pr15"}>
|
||||||
<img src={MainLogo} alt="" style={{ heigth: "40px" }}/>
|
<img src={MainLogo} alt="ccf" />
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
settings && settings.nav_logo_url ?
|
settings && settings.nav_logo_url ?
|
||||||
<a href={settings && settings.new_course.default_url} className={"fl mr50"} style={{minWidth:"45px"}}>
|
<a href={settings && settings.new_course.default_url} className={"fl mr50"}>
|
||||||
<img alt="可控开源社区" className="logoimg" style={{ heigth: "40px" }} src={getImageUrl(`/${settings.nav_logo_url}`)}></img>
|
<img alt="可控开源社区" className="logoimg" src={getImageUrl(`/${settings.nav_logo_url}`)}></img>
|
||||||
</a>
|
</a>
|
||||||
:
|
:
|
||||||
""
|
""
|
||||||
|
|
|
@ -23,8 +23,13 @@ function Index(props) {
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
window.addEventListener("scroll",scrollListener);
|
window.addEventListener("scroll",scrollListener);
|
||||||
getTab();
|
getTab();
|
||||||
|
return ComponentWillUnmount;
|
||||||
},[])
|
},[])
|
||||||
|
|
||||||
|
function ComponentWillUnmount() {
|
||||||
|
window.removeEventListener("scroll",scrollListener);
|
||||||
|
}
|
||||||
|
|
||||||
function getTab() {
|
function getTab() {
|
||||||
const url = `/topics.json?topic_type=card`;
|
const url = `/topics.json?topic_type=card`;
|
||||||
Axios.get(url,{
|
Axios.get(url,{
|
||||||
|
|
|
@ -45,7 +45,11 @@ const codes=[
|
||||||
function SecondEdition({setValue}) {
|
function SecondEdition({setValue}) {
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
window.addEventListener('scroll', handleScroll);
|
window.addEventListener('scroll', handleScroll);
|
||||||
|
return ComponentWillUnmount;
|
||||||
},[])
|
},[])
|
||||||
|
function ComponentWillUnmount() {
|
||||||
|
window.removeEventListener("scroll",handleScroll);
|
||||||
|
}
|
||||||
|
|
||||||
const [ hadoop , setHadoop ] = useState(false);
|
const [ hadoop , setHadoop ] = useState(false);
|
||||||
const [ highDevops , setHighDevops ] = useState(false);
|
const [ highDevops , setHighDevops ] = useState(false);
|
||||||
|
|
|
@ -227,8 +227,8 @@ body>.-task-title {
|
||||||
|
|
||||||
.logoimg {
|
.logoimg {
|
||||||
float: left;
|
float: left;
|
||||||
min-width: 40px;
|
min-width: 34px;
|
||||||
height: 40px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headwith100b {
|
.headwith100b {
|
||||||
|
|
Loading…
Reference in New Issue