云文件系统初始化

This commit is contained in:
2026-04-01 23:56:09 +08:00
parent 3107b11bc4
commit 61a675b4de
3 changed files with 116 additions and 5 deletions

View File

@@ -269,7 +269,7 @@ const formatDate = (date) => {
const canPreview = (file) => {
if (file.type === 'folder') return false
const ext = file.name.split('.').pop()?.toLowerCase()
return ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'pdf', 'txt', 'md'].includes(ext)
return ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'pdf', 'txt', 'md', 'docx', 'xlsx', 'pptx', 'doc', 'xls', 'ppt', 'ofd'].includes(ext)
}
// 分页