newValue.forEach(async (file, index) => { this.loading = true videoBlobList.push(new Promise(resolve => { this.getFileArrayBuffer(file.id).then(res => { resolve(res) }) })) }) // console.log('有多少promise请求', videoBlobList) Promise.all(videoBlobList).then(result => { // const videoBlob = new Blob([videoData]) // const videoUrl = window.URL.createObjectURL(videoBlob) // // file.url = videoUrl // this.localList.push(file) this.loading = false console.log('localList', this.localList, result) })
Promise.all发请求,上传视频
最新推荐文章于 2024-04-22 17:19:14 发布
关键词由CSDN通过智能技术生成