From 6dfe35d6b78f18c23c0fc9eaa7599170e27a0b20 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Sun, 4 Dec 2022 03:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=A8=20element=20plus=20=E5=8E=9F?= =?UTF-8?q?=E7=94=9F=20api=20=E5=AE=9E=E7=8E=B0=E5=AF=86=E7=A0=81=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E6=98=BE=E7=A4=BA=E5=AF=86=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 46 +++++----------------------- src/views/personal/edit.password.vue | 6 ++-- 2 files changed, 10 insertions(+), 42 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index c006e994..e308f679 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -21,12 +21,10 @@ const title = import.meta.env.VITE_APP_TITLE // 表单类型,login 登录,reset 重置密码 const formType = ref('login') const loading = ref(false) -const passwordType = ref('password') const redirect = ref(route.query.redirect?.toString() ?? '/') // 登录 const loginFormRef = ref() -const loginPasswordRef = ref() const loginForm = ref({ account: localStorage.login_account || '', password: '', @@ -63,8 +61,6 @@ function handleLogin() { // 注册 const registerFormRef = ref() -const registerPasswordRef = ref() -const registerCheckPasswordRef = ref() const registerForm = ref({ account: '', captcha: '', @@ -110,7 +106,6 @@ function handleRegister() { // 重置密码 const resetFormRef = ref() -const resetNewPasswordRef = ref() const resetForm = ref({ account: localStorage.login_account || '', captcha: '', @@ -140,13 +135,6 @@ function handleReset() { }) } -function showPassword(passwordEl: HTMLElement | undefined) { - passwordType.value = passwordType.value === 'password' ? '' : 'password' - nextTick(() => { - passwordEl?.focus() - }) -} - function testAccount(account: string) { loginForm.value.account = account loginForm.value.password = '123456' @@ -170,7 +158,7 @@ function testAccount(account: string) {
- +