|
@@ -136,7 +136,6 @@ const EditTitleCoverModal: React.FC<EditTitleCoverModalProps> = ({ visible, onCa
|
|
};
|
|
};
|
|
|
|
|
|
const handleUploadChange: UploadProps['onChange'] = ({ fileList: newFileList }) => {
|
|
const handleUploadChange: UploadProps['onChange'] = ({ fileList: newFileList }) => {
|
|
- console.log('newFileList', newFileList);
|
|
|
|
// Only keep the latest file
|
|
// Only keep the latest file
|
|
setFileList(newFileList.slice(-1));
|
|
setFileList(newFileList.slice(-1));
|
|
// If upload is successful, manually set coverType to 'upload'
|
|
// If upload is successful, manually set coverType to 'upload'
|