mirror of
https://github.com/PlayEdu/backend
synced 2025-12-29 20:39:48 +08:00
数据结构重构优化
This commit is contained in:
@@ -22,8 +22,10 @@ export const CourseAttachmentUpdate: React.FC<PropInterface> = ({
|
||||
const [form] = Form.useForm();
|
||||
const [init, setInit] = useState(true);
|
||||
const [attachmentVisible, setAttachmentVisible] = useState<boolean>(false);
|
||||
const [attachmentData, setAttachmentData] = useState<any>([]);
|
||||
const [attachments, setAttachments] = useState<any>([]);
|
||||
const [attachmentData, setAttachmentData] = useState<AttachmentDataModel[]>(
|
||||
[]
|
||||
);
|
||||
const [attachments, setAttachments] = useState<number[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
setInit(true);
|
||||
|
||||
Reference in New Issue
Block a user