Browse Source

修复个人信息

tags/0.0.1
Weller 4 years ago
parent
commit
90ca63244a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      lib/models/user/user_info_model_notifier.dart

+ 4
- 1
lib/models/user/user_info_model_notifier.dart View File

@@ -16,7 +16,10 @@ class UserInfoNotifier with ChangeNotifier {
UserInfoModel get userInfo {
if (null == _userInfo) {
getUserInfoModel().then((user) {
if (user != null) notifyListeners();
if (user != null) {
_userInfo = user;
notifyListeners();
}
});
}
return _userInfo;


Loading…
Cancel
Save