fix: 评论区无限滚动

This commit is contained in:
orz12
2024-08-18 23:33:16 +08:00
parent 4fc5913633
commit 2ebf0a29b7
3 changed files with 6 additions and 3 deletions

View File

@@ -49,7 +49,10 @@ class DynamicDetailController extends GetxController {
Future queryReplyList({reqType = 'init'}) async {
if (reqType == 'init') {
nextOffset = "";
noMore.value = "";
}
if (isLoadingMore) return;
if (noMore.value == '没有更多了') return;
isLoadingMore = true;
var res = await ReplyHttp.replyList(
oid: oid!,

View File

@@ -62,7 +62,9 @@ class HtmlRenderController extends GetxController {
Future queryReplyList({reqType = 'init'}) async {
if (reqType == 'init') {
nextOffset = "";
noMore.value = "";
}
if (noMore.value == '没有更多了') return;
var res = await ReplyHttp.replyList(
oid: oid.value,
nextOffset: nextOffset,

View File

@@ -58,9 +58,7 @@ class VideoReplyController extends GetxController {
nextOffset = '';
noMore.value = '';
}
if (noMore.value == '没有更多了') {
return;
}
if (noMore.value == '没有更多了') return;
isLoadingMore = true;
final res = await ReplyHttp.replyList(
oid: aid!,