在项目静态文件中找到upload.js文件,修改pushFile方法
// 追加文件到队列
pushFile: function () {
//that.files = that.files || {};//原文件内容
that.files = {};//每次上传时重置文件队列
console.log('pushFile',that.chooseFiles, that.files)
layui.each(that.chooseFiles, function (index, item) {
that.files[index] = item;
});
return that.files;
},