diff --git a/src/forge/Team/Component/UploadImage.jsx b/src/forge/Team/Component/UploadImage.jsx index 93f6dc06..4338a09d 100644 --- a/src/forge/Team/Component/UploadImage.jsx +++ b/src/forge/Team/Component/UploadImage.jsx @@ -1,10 +1,16 @@ -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { Upload , Icon , message } from "antd"; import { getUploadActionUrl } from 'educoder'; -function UploadImage({ getImage }){ +function UploadImage({ getImage , url }){ const [ imageUrl , setImageUrl ] = useState(undefined); + useEffect(()=>{ + if(url){ + setImageUrl(url); + } + },[url]) + function getBase64(img, callback) { const reader = new FileReader(); reader.addEventListener('load', () => callback(reader.result)); diff --git a/src/forge/Team/New.jsx b/src/forge/Team/New.jsx index 868b8211..bf854ab2 100644 --- a/src/forge/Team/New.jsx +++ b/src/forge/Team/New.jsx @@ -49,7 +49,6 @@ export default Form.create()( } return( -
新建组织
@@ -112,7 +111,6 @@ export default Form.create()(