From ac21dab65fd2a9ca92a5f209da153f4547841d14 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 2 Jul 2025 17:59:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E6=9B=B4=E6=96=B0=20OnlyOffice?= =?UTF-8?q?=20=E6=94=AF=E6=8C=81=E7=9A=84=E6=96=87=E4=BB=B6=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增了多个文件格式,包括 md、vsdx、odg 等 - 更新后的列表共包含54 种文件格式,比之前增加了 37 种 --- src/utils/file-type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file-type.js b/src/utils/file-type.js index fafcbee..bfa80f2 100644 --- a/src/utils/file-type.js +++ b/src/utils/file-type.js @@ -21,7 +21,7 @@ monaco.languages.getLanguages().forEach(language => { // onlyOffice支持的文件格式 export const onlyOfficeSupportedFormats = [ - 'doc', 'docx', 'odt', 'rtf', 'xls', 'xlsx', 'ods', 'csv', 'ppt', 'ppsx', 'pps', 'odp', 'pptx', 'pdf', 'epub', 'html' + 'md', 'vsdx', 'csv', 'odg', 'xlsb', 'djvu', 'doc', 'docm', 'docx', 'docxf', 'dot', 'dotm', 'dotx', 'epub', 'fb2', 'fodp', 'fods', 'fodt', 'htm', 'html', 'key', 'mht', 'numbers', 'odp', 'ods', 'odt', 'oform', 'otp', 'ots', 'ott', 'oxps', 'pages', 'pdf', 'pot', 'potm', 'potx', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx', 'rtf', 'txt', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx', 'xml', 'xps' ] // 换行