promise.all
2021-05-27 本文已影响0人
秀萝卜
Promise.all([
this.$http.get('/form/getNames'),
this.$http.get('/form/getCities')
]).then(data=> {
this.names= data[0].data.data
this.cities= data[1].data.data
})
Promise.all([
this.$http.get('/form/getNames'),
this.$http.get('/form/getCities')
]).then(data=> {
this.names= data[0].data.data
this.cities= data[1].data.data
})