Browse Source

1、添加登录退出淘宝的操作

tags/0.0.14+2
“yanghuaxuan” 3 years ago
parent
commit
054fe7c08c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/models/user/user_info_model_notifier.dart

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

@@ -61,6 +61,7 @@ class UserInfoNotifier with ChangeNotifier {
await SharedPreferencesUtil.setStringValue(GlobalConfig.SHARED_KEY_TOKEN, loginUser.token);
await SharedPreferencesUtil.setStringValue(GlobalConfig.SHARED_KEY_MOBILE, loginUser.mobile);
await SharedPreferencesUtil.setStringValue(GlobalConfig.SHARED_KEY_USER_INFO, jsonEncode(loginUser.toJson()));
FlutterAlibc.loginOut();
notifyListeners();
}



Loading…
Cancel
Save