瀏覽代碼

[new]优化登录失效逻辑

zk 11 月之前
父節點
當前提交
0d46219c9f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/data/repositories/account_repository.dart

+ 3 - 0
lib/data/repositories/account_repository.dart

@@ -94,6 +94,9 @@ class AccountRepository {
         .userInfo(AppBaseRequest())
         .then(HttpHandler.handle(false))
         .then((response) {
+      if (response.loginStatus == 0) {
+        logout();
+      }
       _userInfo.value = response;
       return response;
     });