Skip to content

Commit

Permalink
Merge pull request #13 from ynnnny/main
Browse files Browse the repository at this point in the history
chore: 修改作业
  • Loading branch information
eleliauk authored Sep 8, 2024
2 parents 6f8494a + 1eb1463 commit 8e4a802
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/pages/homework/components/uploadWrap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,27 @@ const UploadSection: React.FC<UploadSectionProps> = (props) => {
)}
</>
}
title={formTitle.title_text || title} // 显示选中的作业标题
title={title}
></Title>
}
className={'upload-wrap ' + (className || '')}
style={style}
loading={loading}
>
<div className="upload-upload">
{choice.includes('new') || choice.includes('edit') ? (
{choice.includes('new') ? (
<InputBox
defaultValue={[formTitle.title_text]} // 修改默认值为选中的作业标题
defaultValue={[defaultValue.title_text]}
label="标题"
type="input"
className="inp more"
limit={30}
onChange={(str) => handleChangeTitle({ id: formTitle.assignedTaskID || '', text: str as string })}
onChange={(str) =>
handleChangeTitle({
id: '',
text: str as string,
})
}
></InputBox>
) : (
<DropDown
Expand Down

0 comments on commit 8e4a802

Please sign in to comment.