From 2eb9cb1dc96eac22da8245f8b6a97769ec9f5b5f Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Mon, 9 Dec 2024 09:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 16 ++ src/page/login/forgetPassword.vue | 297 ++++++++++++++++-------------- 2 files changed, 171 insertions(+), 142 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index 7ff7f6f..15da3a6 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -157,3 +157,19 @@ export const sendSms = (tenantId, phone) => request({ phone, }, }); + +export const resetPwd = (refresh_token, tenantId, deptId, roleId) => request({ + url: '/api/blade-system/user/register/reset-pwd', + method: 'post', + headers: { + 'Tenant-Id': tenantId, + 'Dept-Id': (website.switchMode ? deptId : ''), + 'Role-Id': (website.switchMode ? roleId : '') + }, + params: { + tenantId, + refresh_token, + grant_type: "refresh_token", + scope: "all", + } +}); diff --git a/src/page/login/forgetPassword.vue b/src/page/login/forgetPassword.vue index d63bb95..9489331 100644 --- a/src/page/login/forgetPassword.vue +++ b/src/page/login/forgetPassword.vue @@ -1,159 +1,172 @@ - - + + \ No newline at end of file +} +