uploading上传图片+预览+删除
项目的图片,视频和文件上传到阿里云的oss中
重点:
①上传成功时,要改变文件的状态,否则一直为uploading
②编辑的时候拿到已经上传的图片
绑定的:file-list="fileList" ,状态status设置为done
this.fileList.push(
{
uid: '-1',
name: 'image.png',
status: 'done',
url: record.coverimg
}
)
HTML:
Markup
<div :key="imgKey">
<a-upload
list-type="picture-card"
:file-list="fileList"
@change="handleChange"
@