From bc3e00c8b41cfb7fae7b6b67ef2f223dea07d1f2 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 5 Feb 2026 10:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin.js | 7 ++++--- src/views/admin/user/components/Account.vue | 6 +++++- src/views/system/user/components/Account.vue | 8 ++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/api/admin.js b/src/api/admin.js index 9ae710d7..7e034181 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -89,10 +89,11 @@ export function UpdateUserRole(param) { }) } -export function resetPassword(userId) { +export function resetPassword(data) { return request({ - url: `/user/resetPassword/${userId}`, - method: 'get' + url: `/user/resetPassword`, + method: 'post', + data }) } diff --git a/src/views/admin/user/components/Account.vue b/src/views/admin/user/components/Account.vue index 4ee4bfeb..f1019b0d 100644 --- a/src/views/admin/user/components/Account.vue +++ b/src/views/admin/user/components/Account.vue @@ -23,7 +23,11 @@ export default { }) .then(() => { - resetPassword(this.userId).then(res => { + let data = { + BaseUrl: `${location.protocol}//${location.host}/login`, + UserId: this.userId + } + resetPassword(data).then(res => { if (res.IsSuccess) { this.$message({ message: 'Reset password successfully', diff --git a/src/views/system/user/components/Account.vue b/src/views/system/user/components/Account.vue index 83045fcf..927498af 100644 --- a/src/views/system/user/components/Account.vue +++ b/src/views/system/user/components/Account.vue @@ -4,7 +4,7 @@ Security -->
- {{$t('system:userlist:button:ResetPassword')}} + {{ $t('system:userlist:button:ResetPassword') }}
@@ -23,7 +23,11 @@ export default { distinguishCancelAndClose: true, }) .then(() => { - resetPassword(this.userId).then(res => { + let data = { + BaseUrl: `${location.protocol}//${location.host}/login`, + UserId: this.userId + } + resetPassword(data).then(res => { if (res.IsSuccess) { let msg = this.$t('system:userlist:message:ResetPassword2') msg = msg.replace('xxx', params('userName'))