mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 补充评论区加载init类型语义,避免使用默认值可能导致的错误
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user