From 8ab7ba06248c19165bb63f966e19217c873fff31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 26 Sep 2025 09:13:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=93=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=9C=AA=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/About/Index.jsx | 6 ++++-- src/forge/Main/sub/UpdateDescModal.jsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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)=>{