Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
FilesAdded: (up, files) => {
//新增图片
if (option.upMaxLength && files.length > option.upMaxLength) {
plupload.each(files, (file) => {
this.evueUploader.removeFile(file);
});
this.evueUploader.refresh();
console.error('只能上传数量为:' + option.upMaxLength);
this.$emit('upload-filesAdded', {
code: -1,
// allFiles: this.allFiles,
msg: '只能上传数量为:' + option.upMaxLength,
// uploader: this.evueUploader,
});
return;
}
this.allFiles = [];
this.upIndex = 0;
let num = 0;