xjj 2 лет назад
Родитель
Сommit
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}