fix: 积分无数据展示

fix: 积分无数据展示
This commit is contained in:
amypeng 2026-06-11 15:56:12 +08:00
parent abf52855e5
commit 493a4081d5
1 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,7 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
let res = await getMyTopArticle(member.zoneId);
if(res && res.data.code === 200){
setCurrentRow(res.data.data);
let newId = null;
let newId = null;
if(res.data.data) {
newId = res.data.data.docId;
}
@ -68,7 +68,6 @@ function PointsDoc({ visible , onCancel , onSure , type , username , choosed , h
setList(rows);
}else{
setList([]);
setCurrentRow(null);
}
setTotal(result.data.total);
}