Explorar el Código

fix: 修改密码api

weikun hace 2 años
padre
commit
5596984e32
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      yudao-ui-admin-vue3/src/api/system/user/profile/index.ts

+ 1 - 1
yudao-ui-admin-vue3/src/api/system/user/profile/index.ts

@@ -16,7 +16,7 @@ export const updateUserProfileApi = (params) => {
 export const updateUserPwdApi = (oldPassword: string, newPassword: string) => {
   return request.put({
     url: '/system/user/profile/update-password',
-    params: {
+    data: {
       oldPassword: oldPassword,
       newPassword: newPassword
     }