save user info when refreshCurrentUser
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
7ec462737b
commit
c3abd3e2b3
@ -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))),
|
||||
);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user