diff --git a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx index 0f576813a..968cac969 100644 --- a/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/upload/ReadPretty.tsx @@ -28,15 +28,16 @@ ReadPretty.Attachment = (props: UploadProps) => {
{images.map((file) => { const handleClick = (e) => { - e.preventDefault(); - e.stopPropagation(); const index = images.indexOf(file); if (isImage(file.extname)) { + e.preventDefault(); + e.stopPropagation(); setVisible(true); setPhotoIndex(index); - } else { - saveAs(file.url, `${file.title}${file.extname}`); } + // else { + // saveAs(file.url, `${file.title}${file.extname}`); + // } }; return (