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
})
本文标题:promise.all
本文链接:https://www.haomeiwen.com/subject/ahzhsltx.html
网友评论