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 {