vue antd 手动上传upload ,限制文件个数为一个
this.fileList = this.fileList.slice(-1);例子:`beforeUpload(file, fileList) {console.log(fileList);this.fileList = […this.fileList, file];console.log(file);console.log(this.fileList);//限制文件只能上传一个this.fileList = this.fileList.slice(-1);const isZip = f
原创
2021-01-28 16:27:21 ·
8498 阅读 ·
2 评论