opt onChangeAccount

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-10 10:22:24 +08:00
parent 50cf74ccf7
commit 59c7f8a030
4 changed files with 16 additions and 10 deletions

View File

@@ -42,16 +42,20 @@ class PgcController
@override
Future<void> onRefresh() {
if (accountService.isLogin.value) {
followPage = 1;
followEnd = false;
_refreshPgcFollow();
}
queryPgcFollow();
if (showPgcTimeline) {
queryPgcTimeline();
}
return super.onRefresh();
}
void _refreshPgcFollow() {
followPage = 1;
followEnd = false;
queryPgcFollow();
}
// follow
late int followPage = 1;
late RxInt followCount = (-1).obs;
@@ -147,9 +151,7 @@ class PgcController
@override
void onChangeAccount(bool isLogin) {
if (isLogin) {
followPage = 1;
followEnd = false;
queryPgcFollow();
_refreshPgcFollow();
} else {
followState.value = LoadingState.loading();
}