mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-20 16:18:39 +00:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -23,13 +23,13 @@ class MemberBangumiCtr
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
dynamic response = (_ctr.loadingState.value as Success).response;
|
||||
if (response is SpaceData) {
|
||||
SpaceData? response = _ctr.loadingState.value.data;
|
||||
if (response != null) {
|
||||
page = 2;
|
||||
dynamic res = response.season;
|
||||
var res = response.season!;
|
||||
loadingState.value = Success(res.item);
|
||||
count = res.count;
|
||||
isEnd = res.item!.length >= count;
|
||||
count = res.count!;
|
||||
isEnd = res.item!.length >= count!;
|
||||
} else {
|
||||
queryData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user