hyzp_ybqx-Commit093:优化,已初步实现显示保存的用户列表,选择列表项目后能够成功登录
This commit is contained in:
@@ -493,11 +493,11 @@ class _LoginPageState extends State<LoginByName3> {
|
||||
g_users.clear();
|
||||
g_users.addAll(await SaveAccountPasswordManager.getUsers());
|
||||
//默认加载第一个账号
|
||||
if (g_users.isNotEmpty) {
|
||||
setState(() {
|
||||
g_userInfo.username = g_users[0].username;
|
||||
g_userInfo.password = g_users[0].password;
|
||||
});
|
||||
}
|
||||
// if (g_users.isNotEmpty) {
|
||||
// setState(() {
|
||||
// g_userInfo.username = g_users[0].username;
|
||||
// g_userInfo.password = g_users[0].password;
|
||||
// });
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user