onchange(file, fileList) {
let roleList = ['image/jpeg','image/png','image/jpg','application/pdf'] let isimgType = roleList.includes(file.raw.type) if(!isimgType) { this.$message.error('请上传JPG,PNG,JPEG,PDF格式文件') return false } fileList.forEach(item=>{ if(item.raw){ let url = URL.createObjectURL(item.raw) item.url = url } }) this.files = fileList },
待解决
悬赏分:40
- 离问题结束还有 170天15小时31分3秒
点赞 0反对 0举报 0
收藏 0
分享 0
