fix: 动态页面upPanel不刷新

This commit is contained in:
guozhigq
2024-03-03 09:57:41 +08:00
parent 602d795909
commit caca16a957
3 changed files with 32 additions and 25 deletions

View File

@ -258,6 +258,10 @@ class DynamicsController extends GetxController {
if (upData.value.upList!.isEmpty) {
mid.value = -1;
}
upData.value.upList!.insertAll(0, [
UpItem(face: '', uname: '全部动态', mid: -1),
UpItem(face: userInfo.face, uname: '', mid: userInfo.mid),
]);
}
return res;
}