this.$refs.upload.abort(file) // upload: el-upload的ref值;file:File类型,file文件本身
fileList.splice(fileList.indexOf(file), 1) // fileList: 文件列表,钩子函数中的fileList
this.onRemove(file, fileList) // 调用钩子函数on-remove
el-upload用代码手动删除附件
最新推荐文章于 2024-05-11 14:44:05 发布