var list = [1, 2, 3]
var queue = list.map((item) => {
return new Promise((resolve, rejcet) => {
setTimeout(() => {
resolve(item)
}, 1000)
})
})
Promise.all(queue).then((res) => {
console.log(res, '*******')
})
async oneKeyGet(){
for(let i = 0; i < this.dataTable.length;i++) {
let res = await this.goToDetail(this.dataTable[i]);
this.goOn(res);
}
}