From 06c3761d05b78bbe24558e979d78e6cc5ea11cbd Mon Sep 17 00:00:00 2001 From: admin <592225189@qq.com> Date: Thu, 31 Oct 2024 15:43:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BD=AFkey=E7=99=BB=E5=BD=95=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/login.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 9e03f45..417e0d1 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -120,7 +120,10 @@ const activeName = ref('UKEY') const loginForm = reactive({ account: '', password: '', - ukeyPassword: '' + ukeyPassword: '', + saccount: '', + spassword: '' + }) const remember = ref(false) const loading = ref(false) @@ -136,6 +139,8 @@ const init = () => { const obj = JSON.parse(local) loginForm.account = obj.account loginForm.password = decrypt(obj.password) + loginForm.saccount = obj.saccount + loginForm.spassword = decrypt(obj.spassword) remember.value = true } } @@ -147,7 +152,9 @@ function goLogin(data: any) { if (unref(remember)) { const obj = { account: loginForm.account, - password: encrypt(loginForm.password) + password: encrypt(loginForm.password), + saccount: loginForm.saccount, + spassword: encrypt(loginForm.spassword) } localStorage.setItem('cmcLoginData', JSON.stringify(obj)) } else {