adtec-core-package 2.7.8 → 2.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -210,7 +210,7 @@ const getAccept = computed(() => {
|
|
|
210
210
|
} else if (props.accept === 'ppt') {
|
|
211
211
|
return '.ppt,.pptx'
|
|
212
212
|
} else {
|
|
213
|
-
return
|
|
213
|
+
return undefined
|
|
214
214
|
}
|
|
215
215
|
})
|
|
216
216
|
const getIcon = (fileName: string) => {
|
|
@@ -270,7 +270,7 @@ const beforeUpload = (file: File) => {
|
|
|
270
270
|
?.split(',')
|
|
271
271
|
.map(suffix => suffix.slice(1).toLowerCase())
|
|
272
272
|
const fileSuffix = file.name.split('.').pop()?.toLowerCase()
|
|
273
|
-
if (acceptSuffixes
|
|
273
|
+
if (acceptSuffixes && !acceptSuffixes.includes(fileSuffix??'')) {
|
|
274
274
|
ElMessage.error(`文件 ${file.name} 格式不支持,仅允许 ${getAccept.value}!`)
|
|
275
275
|
setTimeout(() => {
|
|
276
276
|
ref_upload.value?.clearFiles(["ready"])
|