fix: 修改密码调整

This commit is contained in:
lzhizhao 2025-09-25 18:54:39 +08:00
parent 0d47faf1c2
commit 0d3f687261
2 changed files with 8 additions and 8 deletions

View File

@ -1,14 +1,14 @@
import $http from '../../utils/httpRequest' import $http from '../../utils/httpRequest'
// 修改密码 // 修改密码
export const password = (password, newPassword) => { export const password = (oldPassword, newPassword) => {
return $http({ return $http({
url: '/sys/user/password', url: '/auth/change/pwd',
method: 'post', method: 'put',
data: $http.adornData({ data: {
password: password, oldPassword: oldPassword,
newPassword: newPassword newPassword: newPassword
}) }
}) })
} }

View File

@ -53,8 +53,8 @@ export function info () {
export function updatePassword () { export function updatePassword () {
return { return {
// isOpen: false, // isOpen: false,
url: '/sys/user/password', url: '/auth/change/pwd',
type: 'post', type: 'put',
data: { data: {
'msg': 'success', 'msg': 'success',
'code': 0 'code': 0