Commit f7568015 by weiw

fix:文件预览报错

parent 31ce1418
......@@ -89,7 +89,7 @@ export const FilePreviewModal: React.FC<FilePreviewModalProps> = ({ isOpen, onCl
<DocxPreview
key={docUrl} // 添加key确保组件重新挂载
src={docUrl}
className="w-full min-h-full"
className="w-full"
onRendered={handleDocumentRendered}
onError={handleDocumentError}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment