超算专区

This commit is contained in:
谢思 2026-05-22 14:44:15 +08:00
parent 41d9eaf4e7
commit 871a53acba
2 changed files with 3 additions and 2 deletions

View File

@ -413,6 +413,7 @@
.styleSecond_right{
display: flex;
flex-wrap: wrap;
overflow: hidden;
.imgBox{
width: 372px;
height: 217px;

View File

@ -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 => {