mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refactor: history page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -13,9 +13,8 @@ class MemberDynamicCtr extends CommonController {
|
||||
bool customHandleResponse(Success response) {
|
||||
DynSpaceRsp res = response.response;
|
||||
isEnd = !res.hasMore;
|
||||
if (currentPage != 1) {
|
||||
res.list.insertAll(
|
||||
0, (loadingState.value as Success?)?.response ?? <DynamicItem>[]);
|
||||
if (currentPage != 1 && loadingState.value is Success) {
|
||||
res.list.insertAll(0, (loadingState.value as Success).response);
|
||||
}
|
||||
loadingState.value = LoadingState.success(res.list);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user