From 6a6cecac38a4a768205d7b665f59635410e64121 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 3 Feb 2021 14:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E9=99=90=E7=99=BB?= =?UTF-8?q?=E9=99=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/network/net_util.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }