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()(

-
) }) ) \ No newline at end of file diff --git a/src/modules/tpm/TPMIndex.css b/src/modules/tpm/TPMIndex.css index 8ee4561d..094e41f0 100644 --- a/src/modules/tpm/TPMIndex.css +++ b/src/modules/tpm/TPMIndex.css @@ -95,7 +95,7 @@ body>.-task-title { } .newContainer { - background: #EAEBEC !important; + background: #f5f5f5; } .ant-modal-title {