瀏覽代碼

fix: 修改密码api

weikun 2 年之前
父節點
當前提交
5596984e32
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     }