跟新
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user