diff --git a/lib/pages/login_page/account/login_account_page.dart b/lib/pages/login_page/account/login_account_page.dart index 426789e..a449682 100644 --- a/lib/pages/login_page/account/login_account_page.dart +++ b/lib/pages/login_page/account/login_account_page.dart @@ -93,16 +93,18 @@ class _LoginAccountPageContianerState extends State i void _changeLoginTypeOnClick() { print('切换登陆'); + _passFN?.unfocus(); + _vcodeFN?.unfocus(); + _phoneFN?.unfocus(); + setState(() { _useVcode = !_useVcode; }); // 清除缓存 if (_useVcode) { _passEdController?.clear(); - _passFN?.unfocus(); } else { _vcodeEdController?.clear(); - _vcodeFN?.unfocus(); } }