소스 검색

destoryModal

Renxy 2 년 전
부모
커밋
884d10ba30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/FileViewer/index.js

+ 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}