From 6cfeb735d5bcdfdf35c6cfb8dfc2236476d30b81 Mon Sep 17 00:00:00 2001 From: wangchengming <15110151257@163.com> Date: Thu, 3 Jul 2025 18:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=B3=A8=E5=86=8C=20?= =?UTF-8?q?=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 13 +++ src/views/forgetPassword.vue | 122 ++++++++++++----------- src/views/register.vue | 185 ++++++++++++++++++++++++----------- 3 files changed, 207 insertions(+), 113 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index fd5c12b..27bd387 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -44,6 +44,19 @@ export function delUser(userId) { }) } +// 忘记密码重置 +export function resetPwd(userId, password) { + const data = { + userId, + password + } + return request({ + url: '/system/user/resetPwd', + method: 'put', + data: data + }) +} + // 用户密码重置 export function resetUserPwd(userId, password) { const data = { diff --git a/src/views/forgetPassword.vue b/src/views/forgetPassword.vue index 71fddec..49ad7ba 100644 --- a/src/views/forgetPassword.vue +++ b/src/views/forgetPassword.vue @@ -15,99 +15,109 @@ - - - - - + + - - + + - - + + + + - - + + + + + + + + - - - - - -