From f808a7f6ebfb3ab0948f072b6be84e7bcd250de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E8=B4=A4?= Date: Wed, 7 Jan 2026 17:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/im/im_manager.dart | 3 ++- lib/network/network_config.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/im/im_manager.dart b/lib/im/im_manager.dart index f79760b..ddac92d 100644 --- a/lib/im/im_manager.dart +++ b/lib/im/im_manager.dart @@ -1009,7 +1009,8 @@ class IMManager { } // 清除本地存储 - GetStorage().erase(); + storage.remove('userId'); + storage.remove('token'); // 清除全局数据 GlobalData().logout(); diff --git a/lib/network/network_config.dart b/lib/network/network_config.dart index 19be50f..b2a14cf 100644 --- a/lib/network/network_config.dart +++ b/lib/network/network_config.dart @@ -190,7 +190,8 @@ class ResponseInterceptor extends Interceptor { conversationController.clearConversations(); } // 清除本地存储 - GetStorage().erase(); + GetStorage().remove('userId'); + GetStorage().remove('token'); // 清除全局数据 GlobalData().logout();