fix: rememberMe bug

This commit is contained in:
xingyu
2023-01-05 15:02:32 +08:00
parent efcbd1ab68
commit 15ef2dbf78
2 changed files with 12 additions and 8 deletions

View File

@ -47,7 +47,9 @@ export type LoginFormType = {
export const getLoginForm = () => {
const loginForm: LoginFormType = wsCache.get(LoginFormKey)
loginForm.password = decrypt(loginForm.password) as string
if (loginForm) {
loginForm.password = decrypt(loginForm.password) as string
}
return loginForm
}