|
@@ -216,7 +216,7 @@ const schema = reactive<FormSchema[]>([
|
216
|
216
|
},
|
217
|
217
|
beforeUpload: (rawFile) => {
|
218
|
218
|
console.log('kokokoko', rawFile)
|
219
|
|
- if (rawFile.type !== 'application/x-zip-compressed') {
|
|
219
|
+ if (rawFile.type !== 'application/x-zip-compressed' || rawFile.type !== 'application/zip') {
|
220
|
220
|
ElMessage.error('只能上传ZIP文件')
|
221
|
221
|
return false
|
222
|
222
|
} else if (rawFile.size / 1024 / 1024 > 2048) {
|