From 4cb8198e00924efd099731f303f8e03536d5095e Mon Sep 17 00:00:00 2001 From: lilith xia Date: Sun, 8 Sep 2024 13:06:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/homework/components/uploadWrap/index.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pages/homework/components/uploadWrap/index.tsx b/src/pages/homework/components/uploadWrap/index.tsx index 7e94f4a..2c077c1 100644 --- a/src/pages/homework/components/uploadWrap/index.tsx +++ b/src/pages/homework/components/uploadWrap/index.tsx @@ -127,7 +127,7 @@ const UploadSection: React.FC = (props) => { )} } - title={formTitle.title_text || title} // 显示选中的作业标题 + title={title} > } className={'upload-wrap ' + (className || '')} @@ -135,14 +135,19 @@ const UploadSection: React.FC = (props) => { loading={loading} >
- {choice.includes('new') || choice.includes('edit') ? ( + {choice.includes('new') ? ( handleChangeTitle({ id: formTitle.assignedTaskID || '', text: str as string })} + onChange={(str) => + handleChangeTitle({ + id: formTitle.assignedTaskID || '', + text: str as string, + }) + } > ) : ( Date: Sun, 8 Sep 2024 13:39:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/homework/components/uploadWrap/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/homework/components/uploadWrap/index.tsx b/src/pages/homework/components/uploadWrap/index.tsx index 2c077c1..5b6924d 100644 --- a/src/pages/homework/components/uploadWrap/index.tsx +++ b/src/pages/homework/components/uploadWrap/index.tsx @@ -144,7 +144,7 @@ const UploadSection: React.FC = (props) => { limit={30} onChange={(str) => handleChangeTitle({ - id: formTitle.assignedTaskID || '', + id: '', text: str as string, }) }