修改组织图片issue

This commit is contained in:
何童崇 2022-03-02 15:10:18 +08:00
parent 3ae9284494
commit 15b2ce6ea9
1 changed files with 3 additions and 1 deletions

View File

@ -74,6 +74,7 @@ export default Form.create()(
function getImage(image){
setImageFlag(true);
setImage(image);
console.log(image);
}
//
@ -107,6 +108,7 @@ export default Form.create()(
}
callback();
}
return(
<div>
<WhiteBack>
@ -180,7 +182,7 @@ export default Form.create()(
"当输入栏为空时,默认数量无限制"
)}
<p>选择头像:</p>
<UploadImage url={getImageUrl(`/${image}`)} getImage={getImage}/>
<UploadImage url={image&&image.startsWith('images/avatars/Organization')?getImageUrl(`/${image}`):image} getImage={getImage}/>
<Button type={"primary"} onClick={updateDetail}>更新组织设置</Button>
</Form>
</Div>