diff --git a/src/forge/users/Avatar/Index.jsx b/src/forge/users/Avatar/Index.jsx index 0f9e51f92..7c2136b51 100644 --- a/src/forge/users/Avatar/Index.jsx +++ b/src/forge/users/Avatar/Index.jsx @@ -18,7 +18,7 @@ function Index({onCancel,avatarImg,login}){ const cropper = useRef(); const saveAvatar = async () => { - const imgUrl = cropper.current.cropper.getCroppedCanvas().toDataURL("image/jpeg"); + const imgUrl = cropper.current.cropper.getCroppedCanvas().toDataURL("image/png"); if (!imgUrl) { message.info('请先上传图片'); }