Commit 7dbe7329 authored by guxukai's avatar guxukai

fix: windows打不开压缩文件

parent e4f484d9
...@@ -267,7 +267,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error, ...@@ -267,7 +267,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error,
// 'application/x-zip-compressed' win // 'application/x-zip-compressed' win
// 'application/zip' mac // 'application/zip' mac
if ( if (
file.type === 'application/zip' || file.type === 'application/x-zip-compressed' file.type.includes('zip')
) { ) {
if (file.size / 1024 > 1024) { if (file.size / 1024 > 1024) {
return dispatch(displayNotification('File Upload Failed', '压缩文件大于1M', 'Close', null, async () => { return dispatch(displayNotification('File Upload Failed', '压缩文件大于1M', 'Close', null, async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment