Browse Source

优化退出登录流程

master
王子贤 2 months ago
parent
commit
f808a7f6eb
2 changed files with 4 additions and 2 deletions
  1. 3
      lib/im/im_manager.dart
  2. 3
      lib/network/network_config.dart

3
lib/im/im_manager.dart

@ -1009,7 +1009,8 @@ class IMManager {
} }
// //
GetStorage().erase();
storage.remove('userId');
storage.remove('token');
// //
GlobalData().logout(); GlobalData().logout();

3
lib/network/network_config.dart

@ -190,7 +190,8 @@ class ResponseInterceptor extends Interceptor {
conversationController.clearConversations(); conversationController.clearConversations();
} }
// //
GetStorage().erase();
GetStorage().remove('userId');
GetStorage().remove('token');
// //
GlobalData().logout(); GlobalData().logout();

Loading…
Cancel
Save