有时候需要动态创建上传框,这样就要求上传成功后数据要根据地方去赋值
<el-upload class="avatar-uploader" :headers="config" :action="upLoadUrl" :show-file-list="false" :data="item" :on-success="(response, file, fileList) => { return handleUploadSuccess(response, file, fileList, item) }" :before-upload="beforePicUpload" > <img v-if="item.bill_url" :src="coverUrl(item.bill_url)" class="avatar"> <i v-else class="el-icon-plus avatar-uploader-icon"></i> </el-upload>
标签:el,upload,fileList,传递,参数,上传 From: https://www.cnblogs.com/haonanZhang/p/18327124