mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix(client): only support plain text file to preview (#6563)
This commit is contained in:
parent
5ad6251d6d
commit
46a3816d83
@ -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 }) {
|
function IframePreviewer({ index, list, onSwitchIndex }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user