uos专区定制cont.

This commit is contained in:
黄心宇 2025-10-23 15:18:11 +08:00
parent 3f104f71d9
commit df905a317c
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ function News({data, subTitle, firstDirIntro, secondDirIntro}) {
const getNewsList = () => {
gethomePageDocList(id).then(result=>{
if(result){
setShowNew(result.data.rows && result.data.rows[0]);
if(result && result.data.rows && result.data.rows[0]){
setShowNew(result.data.rows[0]);
}
}).catch(error=>{})
}