mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: view invalid user space
Closes #414 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -21,6 +21,10 @@ abstract class CommonController extends GetxController {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool handleError(String? errMsg) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// void handleSuccess(List currentList, List dataList) {}
|
||||
|
||||
Future queryData([bool isRefresh = true]) async {
|
||||
@@ -45,7 +49,8 @@ abstract class CommonController extends GetxController {
|
||||
}
|
||||
currentPage++;
|
||||
} else {
|
||||
if (isRefresh) {
|
||||
if (isRefresh &&
|
||||
handleError(response is Error ? response.errMsg : null).not) {
|
||||
loadingState.value = response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user