mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 修复登录菜单消失
This commit is contained in:
parent
fe22a005df
commit
2c612a5919
@ -283,9 +283,7 @@ const login = (formEl: FormInstance | undefined) => {
|
||||
};
|
||||
|
||||
const mfaLogin = async (auto: boolean) => {
|
||||
if (isLoggingIn) {
|
||||
return;
|
||||
}
|
||||
if (isLoggingIn) return;
|
||||
if ((!auto && mfaLoginForm.code) || (auto && mfaLoginForm.code.length === 6)) {
|
||||
isLoggingIn = true;
|
||||
mfaLoginForm.name = loginForm.name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user