文件上传优化

This commit is contained in:
cwchen 2025-11-27 10:33:39 +08:00
parent e0b700a884
commit c7e61523c1
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ export default {
//
handleExceed(files, fileList) {
console.log('文件超出限制处理', files, fileList)
const isAllowed = this.beforeUpload(files[0]);
if (!isAllowed) return;
if (files.length > 0) {
//
this.$emit('del-file', { ...fileList[0], response: fileList[0].res })