refactor(login): drop ineffective guard around auto-login loading reset

The finally block read autoLoginSuccess from the mount-time closure, so the condition was always true and the guard never did anything. The splash stays visible through the autoLoginSuccess flag.
This commit is contained in:
LTbinglingfeng
2026-06-13 02:05:21 +08:00
Unverified
parent 07cdc5a8c4
commit 521350505d
+2 -3
View File
@@ -141,9 +141,8 @@ export function LoginPage() {
setRememberPassword(storedRememberPassword || Boolean(storedKey));
}
} finally {
if (!autoLoginSuccess) {
setAutoLoading(false);
}
// 自动登录成功时 showSplash 仍由 autoLoginSuccess 维持,可无条件结束 loading
setAutoLoading(false);
}
};