Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-08 21:26:21 +08:00
parent f5dbfcec79
commit d63116542b
18 changed files with 73 additions and 51 deletions

View File

@@ -53,7 +53,7 @@ class VideoReplyReplyController extends ReplyController
@override
void onInit() {
super.onInit();
mode.value = Mode.MAIN_LIST_TIME;
mode = Mode.MAIN_LIST_TIME;
queryData();
}
@@ -132,19 +132,10 @@ class VideoReplyReplyController extends ReplyController
oid: oid,
root: rpid,
rpid: id ?? 0,
mode: mode.value,
mode: mode,
offset: paginationReply?.nextOffset,
);
@override
void queryBySort() {
if (isLoading) return;
mode.value = mode.value == Mode.MAIN_LIST_HOT
? Mode.MAIN_LIST_TIME
: Mode.MAIN_LIST_HOT;
onReload();
}
@override
Future<void> onReload() {
if (loadingState.value.isSuccess) {