mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
opt: LoadingState (#1776)
This commit is contained in:
committed by
GitHub
parent
3741fe54ff
commit
17883eb77e
@@ -27,13 +27,11 @@ class HorizontalMemberPageController
|
||||
}
|
||||
|
||||
Future<void> getUserInfo() async {
|
||||
var res = await MemberHttp.memberInfo(mid: mid);
|
||||
if (res['status']) {
|
||||
userState.value = Success(res['data']);
|
||||
final res = await MemberHttp.memberInfo(mid: mid);
|
||||
userState.value = res;
|
||||
if (res.isSuccess) {
|
||||
getMemberStat();
|
||||
getMemberView();
|
||||
} else {
|
||||
userState.value = Error(res['msg']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user