mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +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) => {
|
const mfaLogin = async (auto: boolean) => {
|
||||||
if (isLoggingIn) {
|
if (isLoggingIn) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ((!auto && mfaLoginForm.code) || (auto && mfaLoginForm.code.length === 6)) {
|
if ((!auto && mfaLoginForm.code) || (auto && mfaLoginForm.code.length === 6)) {
|
||||||
isLoggingIn = true;
|
isLoggingIn = true;
|
||||||
mfaLoginForm.name = loginForm.name;
|
mfaLoginForm.name = loginForm.name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user