return new Promise((resolve,reject)=>{
uploadUrl(url).then(res => {
// 塞进去
let obj = {};
obj.key = url;
obj.val = res.data;
resolve(obj);
if(res.success == true){
}else{
reject()
}
})
})
for(let i in that.bigArr){
that.result.push(that.uploadUrl(that.bigArr[i].key));
}
Promise.all(that.result).then((res)=>{
// 调用完所有接口需要做的事情
console.log(res)
}).catch(error => {
// this.$Message.error("获取数据失败");
console.log("error", error);
})