轮播图优化: 使用集中管理的api
This commit is contained in:
parent
2228c66b07
commit
6fb7cb8598
@ -33,7 +33,7 @@
|
||||
// }
|
||||
|
||||
async getSwiper(){
|
||||
const { message } = await this.$u.get("/home/swiperdata")
|
||||
const { message } = await this.$u.api.getSwiperdata()
|
||||
this.swiperList = message.map(v=>({...v,image:v.image_src}))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user