fix(client): only support plain text file to preview (#6563)

This commit is contained in:
Junyi 2025-03-26 15:40:30 +08:00 committed by GitHub
parent 5ad6251d6d
commit 46a3816d83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ attachmentFileTypes.add({
},
});
const iframePreviewSupportedTypes = ['application/pdf', 'audio/*', 'image/*', 'video/*', 'text/*'];
const iframePreviewSupportedTypes = ['application/pdf', 'audio/*', 'image/*', 'video/*', 'text/plain'];
function IframePreviewer({ index, list, onSwitchIndex }) {
const { t } = useTranslation();