<el-upload
v-model="form.pictures"
:action="fileUrl"
:data="formData"
:file-list="fileList" //上传的图片列表
:limit="10" //上传图片数量
list-type="picture-card"
multiple
name="file"
:on-change="handleChange"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:on-success="handleAvatarSuccess"
>
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible">
<img alt="" :src="imageUrl" width="100%" />
</el-dialog>
data定义好 fileList 默认为空数组
this.fileList.push({ //编辑的时候直接数组push进去 url
url: arr,//多个图的数组
})