mod: 补充评论区加载init类型语义,避免使用默认值可能导致的错误

This commit is contained in:
orz12
2024-08-17 09:15:57 +08:00
parent 394f642d5c
commit 81f040f22b
2 changed files with 4 additions and 3 deletions

View File

@@ -103,7 +103,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
_dynamicDetailController =
Get.put(DynamicDetailController(oid, replyType), tag: oid.toString());
}
_futureBuilderFuture = _dynamicDetailController.queryReplyList();
_futureBuilderFuture =
_dynamicDetailController.queryReplyList(reqType: 'init');
}
// 查看二级评论
@@ -210,7 +211,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
),
body: RefreshIndicator(
onRefresh: () async {
await _dynamicDetailController.queryReplyList();
await _dynamicDetailController.queryReplyList(reqType: 'init');
},
child: Stack(
children: [

View File

@@ -65,7 +65,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
fabAnimationCtr = AnimationController(
vsync: this, duration: const Duration(milliseconds: 100));
_videoReplyController.queryReplyList();
_videoReplyController.queryReplyList(type: 'init');
fabAnimationCtr.forward();
scrollListener();