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:32:02 +08:00 committed by wanghe-fit2cloud
parent 86e5fc36f4
commit 2c3a8dd6af

View File

@ -286,8 +286,8 @@ const mfaLogin = async (auto: boolean) => {
if (isLoggingIn) { if (isLoggingIn) {
return; return;
} }
isLoggingIn = true;
if ((!auto && mfaLoginForm.code) || (auto && mfaLoginForm.code.length === 6)) { if ((!auto && mfaLoginForm.code) || (auto && mfaLoginForm.code.length === 6)) {
isLoggingIn = true;
mfaLoginForm.name = loginForm.name; mfaLoginForm.name = loginForm.name;
mfaLoginForm.password = loginForm.password; mfaLoginForm.password = loginForm.password;
const res = await mfaLoginApi(mfaLoginForm); const res = await mfaLoginApi(mfaLoginForm);