mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 评论区allCount为空时保底值0;添加额外的hasData判定
This commit is contained in:
@@ -63,7 +63,7 @@ class DynamicDetailController extends GetxController {
|
||||
isLoadingMore = false;
|
||||
if (res['status']) {
|
||||
List<ReplyItemModel> replies = res['data'].replies;
|
||||
acount.value = res['data'].cursor.allCount;
|
||||
acount.value = res['data'].cursor.allCount ?? 0;
|
||||
nextOffset = res['data'].cursor.paginationReply.nextOffset ?? "";
|
||||
if (replies.isNotEmpty) {
|
||||
noMore.value = '加载中...';
|
||||
|
||||
Reference in New Issue
Block a user