提交 e3b0efac 作者: ZhangLingKun

功能:打开文件问题修复

上级 3164ef35
...@@ -126,6 +126,8 @@ export const Uploader: React.FC<PropsType> = (props) => { ...@@ -126,6 +126,8 @@ export const Uploader: React.FC<PropsType> = (props) => {
if (['png', 'jpg', 'bmp', 'gif', 'jpeg', 'webp'].includes(fileType)) { if (['png', 'jpg', 'bmp', 'gif', 'jpeg', 'webp'].includes(fileType)) {
setCurrentFile(url); setCurrentFile(url);
setVisible(true); setVisible(true);
} else {
window.open(url);
} }
}, },
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论