diff --git a/src/forge/About/Index.jsx b/src/forge/About/Index.jsx index 290cb7b7c..38c1f7943 100644 --- a/src/forge/About/Index.jsx +++ b/src/forge/About/Index.jsx @@ -105,9 +105,11 @@ function Index(props){ } }) } + + const {description} = projectDetail || {}; return(
- {projectDetail && mirror_status ===0 && setOpenModal(false)} onOk={okUpdate}/> } + {projectDetail && mirror_status ===0 && setOpenModal(false)} onOk={okUpdate}/> }
@@ -174,7 +176,7 @@ function Index(props){ {projectDetail &&
关于 { - projectDetail.permission && (projectDetail.permission==="Admin" || projectDetail.permission==="Owner" || projectDetail.permission==="Manager") && setOpenModal(true)} className="iconfont icon-a-shezhi color-grey-9 font-15 pointer"> + editOpration && setOpenModal(true)} className="iconfont icon-a-shezhi color-grey-9 font-15 pointer"> }
{projectDetail.description &&

} diff --git a/src/forge/Main/sub/UpdateDescModal.jsx b/src/forge/Main/sub/UpdateDescModal.jsx index b653f068b..3bbd507a4 100644 --- a/src/forge/Main/sub/UpdateDescModal.jsx +++ b/src/forge/Main/sub/UpdateDescModal.jsx @@ -18,12 +18,12 @@ function UpdateDescModal({form , visible , onCancel , onOk,desc,website,lesson_u }, []) useEffect(()=>{ - if(desc || website){ + if(desc || website || lesson_url){ setFieldsValue({ website,desc,lesson_url }) } - },[desc,website]) + },[desc,website, lesson_url]) function onSure(){ validateFields((err,values)=>{