fix: Mac upload folder error

This commit is contained in:
wangdan-fit2cloud 2025-02-12 17:42:14 +08:00 committed by GitHub
parent d44bdd2dfd
commit c1efc721e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,8 +253,11 @@ const fileHandleChange = (file: any, fileList: UploadFiles) => {
fileList.splice(-1, 1) //
return false
}
if (!isRightType(file?.name, form.value.fileType)) {
MsgError(t('views.document.upload.errorMessage2'))
if (file?.name !== '.DS_Store') {
MsgError(t('views.document.upload.errorMessage2'))
}
fileList.splice(-1, 1)
return false
}