xjj преди 2 години
родител
ревизия
d22dac94dd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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}