From 5c83ec6c856a9b34a97cc4635f3aec55aa7f3e55 Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Tue, 2 Jun 2026 15:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81-=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 12 ++---- src/views/system/user/profile/resetPwd.vue | 48 ++++++++++++---------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index 8fae1ba..5c08719 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -88,15 +88,11 @@ export function updateUserProfile(data) { } // 用户密码重置 -export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } +export function postUserOpsPwd(data) { return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - data: data + url: '/users/ops/passedit', + method: 'post', + data }) } diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue index 6aa8fe5..1a96a9f 100644 --- a/src/views/system/user/profile/resetPwd.vue +++ b/src/views/system/user/profile/resetPwd.vue @@ -1,24 +1,24 @@