<el-upload class="upload-demo" ref="vidos" :action="URL+'/api/post/file'" :data="date" :on-success="handleAvatarAUDIO" :before-upload="beforeAvatarAUDIO" :on-progress="beforeAvatarUpload" //需要用到此方法 accept=".mp4" :auto-upload="vidoauto" :on-change="AvatarAUDIO" :file-list="fileList" >
beforeAvatarUpload(event, file, fileList){ let loadProgress = Math.floor(event.percent) //这就是当前上传的进度 //可以进行其他逻辑 },