el-upload的上传图片时需要一个默认图片
<el-upload
class=""
action="#"
list-type="text"
:before-upload="beforeAvatarUploadl"
:limit="1"
:show-file-list="false">
<el-image
style="width: 100px; height: 100px"
:src="imgurl">
<div slot="error" class="image-slot">
<img style="width:100%;height:auto;" src="../../img/picture.png" alt="">
//通过style="width:100%;height:auto;"可以使得选择的照片自动匹配el-image的长宽
//在阿里巴巴矢量库可以选择图标 https://www.iconfont.cn/
</div>
</el-image>
<el-footer style="padding-right: 0px !important;padding-left: 0px !important;">请上传照片</el-footer>
</el-upload>