From 350913c2fb24236dfd2e9937ee483ec83bad1fe7 Mon Sep 17 00:00:00 2001 From: jacky Date: Sat, 11 May 2024 22:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=BA=93=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/image.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/utils/image.js b/src/utils/image.js index 30aed2c..2f8074b 100644 --- a/src/utils/image.js +++ b/src/utils/image.js @@ -114,6 +114,9 @@ export const isDocumentExt = (url) => { || url.endsWith('.xlsx') || url.endsWith('.ppt') || url.endsWith('.pptx') + || url.endsWith('.wps') + || url.endsWith('.et') + || url.endsWith('.dps') } export const isZipExt = (url) => { @@ -131,17 +134,20 @@ export const isVideoMime = (type) => { export const isDocumentMime = (type) => { return type === 'text/plain' || type === 'application/pdf' - || type === 'application/vnd.ms-word' + || type === 'application/vnd.msword' || type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' || type === 'application/vnd.ms-excel' || type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || type === 'application/vnd.ms-powerpoint' || type === 'application/vnd.openxmlformats-officedocument.presentationml.presentation' + || type === 'application/kswps' + || type === 'application/kset' + || type === 'application/ksdps' } export const isZipMime = (type) => { return type === 'application/zip' - || type === 'application/x-tar' + || type === 'application/rar' } export const isImageMime = (type) => {