:on-change="changeUpload"(el-upload标签上的方法)
// 只能上传单个文件,选择文件覆盖原有文件
changeUpload(file, fileList) {
if (fileList.length > 1 && file.status !== "fail") {
fileList.splice(0, 1);
} else if (file.status === "fail") {
this._err("上传失败,请重新上传!");
fileList.splice(0, 1);
}
},