重置密码接口修改
continuous-integration/drone/push Build is failing Details

wangxiaoshuang 2026-02-05 10:21:06 +08:00
parent 953033b768
commit bc3e00c8b4
3 changed files with 15 additions and 6 deletions

View File

@ -89,10 +89,11 @@ export function UpdateUserRole(param) {
}) })
} }
export function resetPassword(userId) { export function resetPassword(data) {
return request({ return request({
url: `/user/resetPassword/${userId}`, url: `/user/resetPassword`,
method: 'get' method: 'post',
data
}) })
} }

View File

@ -23,7 +23,11 @@ export default {
}) })
.then(() => { .then(() => {
resetPassword(this.userId).then(res => { let data = {
BaseUrl: `${location.protocol}//${location.host}/login`,
UserId: this.userId
}
resetPassword(data).then(res => {
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message({ this.$message({
message: 'Reset password successfully', message: 'Reset password successfully',

View File

@ -23,7 +23,11 @@ export default {
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
}) })
.then(() => { .then(() => {
resetPassword(this.userId).then(res => { let data = {
BaseUrl: `${location.protocol}//${location.host}/login`,
UserId: this.userId
}
resetPassword(data).then(res => {
if (res.IsSuccess) { if (res.IsSuccess) {
let msg = this.$t('system:userlist:message:ResetPassword2') let msg = this.$t('system:userlist:message:ResetPassword2')
msg = msg.replace('xxx', params('userName')) msg = msg.replace('xxx', params('userName'))