<el-uploadref="uploadRef"multipledragaction="":auto-upload="false":file-list="msgPara.MsgFileList":on-change="handleFileChanged"
><el-button type="primary">选择文件</el-button>
</el-upload>
const handleFileChanged = (file, fileList) => { // 检查是否有重复文件,有的话删除新选择的文件 if(fileList.findIndex(f=>f.name===file.name)!=fileList.findLastIndex(f=>f.name===file.name)){ElMessage.info(file.name +" 文件已存在")fileList.pop()}msgPara.MsgFileList = fileListconsole.log(msgPara.MsgFileList)
}