From 8222a12ef405db9b3224039252d9eee1fd2586c0 Mon Sep 17 00:00:00 2001 From: sqlnice <472252510@qq.com> Date: Fri, 1 Nov 2024 14:57:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/login.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }