1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 修复登录菜单消失

This commit is contained in:
江杭辉 2023-11-22 17:33:45 +08:00 committed by ssongliu
parent fe22a005df
commit 2c612a5919

View File

@ -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;