diff --git a/lib/pages/dynamics/detail/controller.dart b/lib/pages/dynamics/detail/controller.dart index 30292757..3385c378 100644 --- a/lib/pages/dynamics/detail/controller.dart +++ b/lib/pages/dynamics/detail/controller.dart @@ -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!, diff --git a/lib/pages/html/controller.dart b/lib/pages/html/controller.dart index 0a557bde..c62f2039 100644 --- a/lib/pages/html/controller.dart +++ b/lib/pages/html/controller.dart @@ -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, diff --git a/lib/pages/video/detail/reply/controller.dart b/lib/pages/video/detail/reply/controller.dart index d27bbea3..e33787f7 100644 --- a/lib/pages/video/detail/reply/controller.dart +++ b/lib/pages/video/detail/reply/controller.dart @@ -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!,