diff --git a/src/forge/Information/Pages/custom/index.less b/src/forge/Information/Pages/custom/index.less index dc8f6bfa7..78b0ffb7d 100644 --- a/src/forge/Information/Pages/custom/index.less +++ b/src/forge/Information/Pages/custom/index.less @@ -413,6 +413,7 @@ .styleSecond_right{ display: flex; flex-wrap: wrap; + overflow: hidden; .imgBox{ width: 372px; height: 217px; diff --git a/src/forge/Information/Pages/custom/newsIndex.jsx b/src/forge/Information/Pages/custom/newsIndex.jsx index 78a2943df..41f5a1ad3 100644 --- a/src/forge/Information/Pages/custom/newsIndex.jsx +++ b/src/forge/Information/Pages/custom/newsIndex.jsx @@ -16,7 +16,7 @@ function NewsIndex(props) { const [mainList, setMainList] = useState([]); const [docList, setDocList] = useState(undefined); const [isSpin, setIsSpin] = useState(true); - const [pageNum, setPageNum] = useState(undefined); + const [pageNum, setPageNum] = useState(1); const [total, setTotal] = useState(0); const { deptId = "NSCC", cateId } = props.match.params; const group1 = mainList.length > 5 ? mainList.slice(0, -2) : mainList @@ -43,7 +43,7 @@ function NewsIndex(props) { cateId && getDocById(cateId, 4, (data)=>{ setDocList(data) }, (data)=>{setTotal(data)}) - }, [cateId]) + }, [cateId, pageNum]) function getMainList() { getNewsAllList(id).then(result => {