forked from Gitlink/forgeplus-react
Merge branch 'gitlink_server' of http://106.75.45.236:3000/Gitlink/forgeplus-react into feature_GLCC
This commit is contained in:
commit
597768d252
|
@ -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('请先上传图片');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue