diff --git a/lib/utils/network/net_util.dart b/lib/utils/network/net_util.dart index c4eb7669..666cf01b 100644 --- a/lib/utils/network/net_util.dart +++ b/lib/utils/network/net_util.dart @@ -178,7 +178,7 @@ class NetUtil { _parseRequestError(BaseModel model, {bool showMessage = false}) { final userProvider = Provider.of(Get.context, listen: false); - if (!model.status && model.message == '登录失效,请登录') { + if (!model.status && model.message == '登录失效,请登录' && userProvider.isLogin) { userProvider.logout(); Get.offAll(SignInPage()); }