Commit 5596984e32fd9d454ceda81a524e166f5a86fabc
1 parent
04fb4c03
fix: 修改密码api
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-ui-admin-vue3/src/api/system/user/profile/index.ts
| @@ -16,7 +16,7 @@ export const updateUserProfileApi = (params) => { | @@ -16,7 +16,7 @@ export const updateUserProfileApi = (params) => { | ||
| 16 | export const updateUserPwdApi = (oldPassword: string, newPassword: string) => { | 16 | export const updateUserPwdApi = (oldPassword: string, newPassword: string) => { |
| 17 | return request.put({ | 17 | return request.put({ |
| 18 | url: '/system/user/profile/update-password', | 18 | url: '/system/user/profile/update-password', |
| 19 | - params: { | 19 | + data: { |
| 20 | oldPassword: oldPassword, | 20 | oldPassword: oldPassword, |
| 21 | newPassword: newPassword | 21 | newPassword: newPassword |
| 22 | } | 22 | } |