This commit is contained in:
吴红兵
2026-03-06 01:15:40 +08:00
parent 25f31978e5
commit 83ed9dad05
3 changed files with 406 additions and 1024 deletions

View File

@@ -503,7 +503,7 @@ const handlePreview = async (file: any) => {
const ext = fileName.split('.').pop()?.toLowerCase() || '';
// 判断是否是图片
const imageExts = ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'webp'];
const imageExts = ['png', 'jpg', 'jpeg'];
// 判断是否是PDF
const isPdf = ext === 'pdf';