save user info when refreshCurrentUser

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-20 17:14:52 +08:00
parent 7ec462737b
commit c3abd3e2b3
2 changed files with 2 additions and 2 deletions

View File

@ -722,7 +722,6 @@ Widget _hoverAction(
);
return Obx(
() => Container(
padding: padding,
margin: EdgeInsets.symmetric(horizontal: 1),
decoration:
(hover.value || hoverableWhenfalse?.value == false) ? deco : null,
@ -730,6 +729,6 @@ Widget _hoverAction(
onHover: (value) => hover.value = value,
onTap: onTap,
onTapDown: onTapDown,
child: child)),
child: Container(padding: padding, child: child))),
);
}

View File

@ -95,6 +95,7 @@ class UserModel {
_parseAndUpdateUser(UserPayload user) {
userName.value = user.name;
isAdmin.value = user.isAdmin;
bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user));
}
// update ab and group status