diff --git a/src/api/system/user/profile.ts b/src/api/system/user/profile.ts index 1e80e854..2e279012 100644 --- a/src/api/system/user/profile.ts +++ b/src/api/system/user/profile.ts @@ -32,10 +32,11 @@ export interface ProfileVO { } export interface UserProfileUpdateReqVO { - nickname: string - email: string - mobile: string - sex: number + nickname?: string + email?: string + mobile?: string + sex?: number + avatar?: string } // 查询用户个人信息 @@ -58,8 +59,3 @@ export const updateUserPassword = (oldPassword: string, newPassword: string) => } }) } - -// 用户头像上传 -export const uploadAvatar = (data) => { - return request.upload({ url: '/system/user/profile/update-avatar', data: data }) -} diff --git a/src/components/Cropper/src/CopperModal.vue b/src/components/Cropper/src/CopperModal.vue index 27052b8a..05b8d87b 100644 --- a/src/components/Cropper/src/CopperModal.vue +++ b/src/components/Cropper/src/CopperModal.vue @@ -1,5 +1,5 @@