mod: 登录后状态

This commit is contained in:
guozhigq
2023-08-17 22:44:01 +08:00
parent adff2f2828
commit be1cc25d12
4 changed files with 36 additions and 5 deletions

View File

@ -145,7 +145,10 @@ class DynamicsController extends GetxController {
}
}
Future queryFollowUp() async {
Future queryFollowUp({type = 'init'}) async {
if (type == 'init') {
upData = FollowUpModel().obs;
}
var res = await DynamicsHttp.followUp();
if (res['status']) {
upData.value = res['data'];

View File

@ -224,7 +224,14 @@ class _DynamicsPageState extends State<DynamicsPage>
} else {
return HttpError(
errMsg: data['msg'],
fn: () => _dynamicsController.onRefresh(),
fn: () {
setState(() {
_futureBuilderFuture =
_dynamicsController.queryFollowDynamic();
_futureBuilderFutureUp =
_dynamicsController.queryFollowUp();
});
},
);
}
} else {