async getdata () {
const _self = this
await _self.getSwieprList()
//当一个await执行完成后才会继续执行下一个
await _self.getNoticeList()...
}
getList() {
const _self = this
return new Promise((s,r)=>{
_self.$Api.dajax('api/swiper' , ' ' , 'get' , res =>{
_self.swiperList = res.data
s()
})
})
}