xjj 2 years ago
parent
commit
d22dac94dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/FileViewer/index.js

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

@@ -10,7 +10,7 @@ const FileViewerModal = ({ data, visible, onCancel, downloadFile }) => {
     <Modal
       destroyOnClose
       title="预览"
-      open={visible}
+      visible={visible}
       width={1000}
       onCancel={onCancel}
       onOk={onCancel}