guodong 3 years ago
parent
commit
55cb908fe6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -102,7 +102,6 @@ namespace GFGGame
                 {
                     OnClickBtnStart();
                 }
-                _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
                 if (!_ui.m_btnLogout.visible)
                 {
                     ViewManager.Show<LoginInputView>();
@@ -140,6 +139,8 @@ namespace GFGGame
 
         private void UpdateServer(ServerInfo info)
         {
+            //登录成功后更新注销按钮显示
+            _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             if (serverInfosComponent.ServerInfoList.Count == 0)
             {