Browse Source

Merge branch 'F/20240102_HotUpdate' of https://gogs.ghz-tech.com:8843/GHzGlass/MREdustryXR into F/20240102_HotUpdate

胡佳骏 1 year ago
parent
commit
2eec7a6aed
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Assets/HotUpdate/Scripts/LoginPassWordManager.cs

+ 2 - 1
Assets/HotUpdate/Scripts/LoginPassWordManager.cs

@@ -52,7 +52,8 @@ public class LoginPassWordManager : MonoSingleton<LoginPassWordManager>
             }
         }else if(num == "R")
         {
-            tmpField.text = tmpField.text.Remove(tmpField.text.Length-1);
+            if (tmpField.text.Length > 0)
+                tmpField.text = tmpField.text.Remove(tmpField.text.Length - 1);
         }
     }
 }