超算专区
This commit is contained in:
parent
41d9eaf4e7
commit
871a53acba
|
|
@ -413,6 +413,7 @@
|
|||
.styleSecond_right{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
.imgBox{
|
||||
width: 372px;
|
||||
height: 217px;
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue