浏览代码

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}