Renxy 2 жил өмнө
parent
commit
884d10ba30

+ 1 - 1
src/components/FileViewer/index.js

@@ -4,9 +4,9 @@ import { memo } from 'react';
 
 const FileViewerModal = ({ data, visible, onCancel, downloadFile }) => {
   const type = data?.url?.split('.')[data?.url?.split('.').length - 1];
-  console.log(data?.url, type);
   return (
     <Modal
+      destroyOnClose
       title="预览"
       open={visible}
       width={1000}