mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-06-16 21:03:58 +08:00
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:
@@ -141,9 +141,8 @@ export function LoginPage() {
|
||||
setRememberPassword(storedRememberPassword || Boolean(storedKey));
|
||||
}
|
||||
} finally {
|
||||
if (!autoLoginSuccess) {
|
||||
setAutoLoading(false);
|
||||
}
|
||||
// 自动登录成功时 showSplash 仍由 autoLoginSuccess 维持,可无条件结束 loading
|
||||
setAutoLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user