截取头像-正方形

This commit is contained in:
caishi 2022-01-06 14:03:41 +08:00
parent bb7732c666
commit ac93cfbc8a
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ function Index({onCancel,avatarImg,login}){
guides={false}
preview="#updateAvatarImg"
ref={cropper}
aspectRatio={1}
/>
{/* <span className={"tips"}>仅支持JPG、GIF、PNG且文件小于2M</span> */}
</div>