From 1fd60cb5cee086abe695d02d6a1b48422d6e3ac8 Mon Sep 17 00:00:00 2001 From: tengxiaofei <302828528@qq.com> Date: Mon, 30 Sep 2024 10:59:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?HL-6191=20SCP=EF=BC=8C=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E6=9C=AA=E6=94=B6=E5=88=B0=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 4 ++++ src/views/login/updatePassword.vue | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index ba8802e36..bbf043064 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -100,6 +100,10 @@ export const forgetPassword = (data : UserVO) => { export const updatePassword = (data : UserVO) => { return request.put({ url: '/system/user/updatePassword', data }) } +// 重置密码 +export const updateUserPassword = (data : UserVO) => { + return request.put({ url: '/system/user/update-password', data }) +} export const getPassWordConfig = () => { return request.get({ url: '/system/password/getConfig' }) diff --git a/src/views/login/updatePassword.vue b/src/views/login/updatePassword.vue index cbebe4dff..29150d64b 100644 --- a/src/views/login/updatePassword.vue +++ b/src/views/login/updatePassword.vue @@ -36,6 +36,7 @@ import { getTenantIdByName, sendSmsCode, smsLogin } from '@/api/login' import * as UserApi from '@/api/system/user' import { View,Hide } from '@element-plus/icons-vue' + import {updateUserPassword} from "@/api/system/user"; const { t } = useI18n() const message = useMessage() const permissionStore = usePermissionStore() @@ -65,7 +66,7 @@ message.error('两次输入的密码不一致,请重新输入!') } else { const data = loginData as unknown as UserApi.UserVO - await UserApi.updatePassword(data) + await UserApi.updateUserPassword(data) // 发送操作成功的事件 message.success(t('common.updateSuccess')) router.go(-1) From 2c9d62dcca4f368394140a0eb9f3be12528ec079 Mon Sep 17 00:00:00 2001 From: bjang03 <259278618@qq.com> Date: Mon, 30 Sep 2024 12:11:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.=20=E5=AF=86=E7=A0=81=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8F=98=E6=9B=B4=EF=BC=8CHL-6189?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/service.ts | 2 +- src/views/login/components/LoginForm.vue | 26 +++++++++++++++--------- src/views/system/user/index.vue | 3 ++- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 9f38c95eb..958d2a79b 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -182,7 +182,7 @@ service.interceptors.response.use( '