参考博客
避免使用push
this.fileList.push({
name: this.data.key,
url: imgUrl + this.data.key,
})
// 看项目场景影响
this.fileList = [
{
name: this.data.key,
url: imgUrl + this.data.key,
},
]
隐藏 loading 元素
/* 推荐,实现简单 */
.el-upload-list__item.is-ready,
.el-upload-list__item.is-uploading {
display: none !important;
}