mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: after login
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -59,7 +59,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
}),
|
||||
),
|
||||
onPressed: () {
|
||||
if (GStorage.userInfo.get('userInfoCache') != null) {
|
||||
if (GStorage.isLogin) {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
useSafeArea: true,
|
||||
|
||||
@@ -97,9 +97,9 @@ class _UpPanelState extends State<UpPanel> {
|
||||
upItemBuild(UpItem(face: '', uname: '全部动态', mid: -1), 0),
|
||||
upItemBuild(
|
||||
UpItem(
|
||||
face: userInfo.face,
|
||||
face: userInfo?.face,
|
||||
uname: '我',
|
||||
mid: userInfo.mid,
|
||||
mid: userInfo?.mid,
|
||||
),
|
||||
1),
|
||||
for (int i = 0; i < upList.length; i++) ...[
|
||||
|
||||
@@ -59,7 +59,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
|
||||
}
|
||||
|
||||
// 更新登录状态
|
||||
void updateLoginStatus(val) async {
|
||||
Future updateLoginStatus(val) async {
|
||||
userInfo = await userInfoCache.get('userInfoCache');
|
||||
userLogin.value = val ?? false;
|
||||
if (val) return;
|
||||
|
||||
Reference in New Issue
Block a user