diff --git a/src/forge/Main/projecthome/Index.jsx b/src/forge/Main/projecthome/Index.jsx index 1fc10cfa..c2b0cab3 100644 --- a/src/forge/Main/projecthome/Index.jsx +++ b/src/forge/Main/projecthome/Index.jsx @@ -10,6 +10,8 @@ import more from '../img/index/more.png'; import axios from 'axios'; import { getImageUrl } from 'educoder'; import Nodata from '../../Nodata'; +import TopIcon from '../img/index/hotAuthor.png'; +import TopProjectSelect from './TopProjectSelect' const { Search } = Input; @@ -28,8 +30,10 @@ function Index() { },[]) useEffect(()=>{ - setIsSpin(true); - getProject(); + if(cateID != -1){ + setIsSpin(true); + getProject(); + } },[cateID, search]) function getCate() { @@ -58,6 +62,10 @@ function Index() { }).catch(error=>{}) } + const handleTopProjectData = (data) => { + setProjectsList(data); + }; + function searchFun(value){ setSearch(value); } @@ -70,6 +78,7 @@ function Index() {