Sfoglia il codice sorgente

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

tags/0.0.14+2
“yanghuaxuan” 3 anni fa
parent
commit
054fe7c08c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      lib/models/user/user_info_model_notifier.dart

+ 1
- 0
lib/models/user/user_info_model_notifier.dart Vedi 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();
}



Caricamento…
Annulla
Salva