diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 735a775..563681f 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -137,9 +137,9 @@ const init = () => { if (local) { const obj = JSON.parse(local) loginForm.account = obj.account - loginForm.password = decrypt(obj.password) + if (obj.password) loginForm.password = decrypt(obj.password) loginForm.saccount = obj.saccount - loginForm.spassword = decrypt(obj.spassword) + if (obj.spassword) loginForm.spassword = decrypt(obj.spassword) remember.value = true } }