轮播图优化: 使用集中管理的api

This commit is contained in:
jqtmviyu@gmail.com 2021-02-21 20:43:56 +08:00
parent 2228c66b07
commit 6fb7cb8598

View File

@ -33,7 +33,7 @@
// } // }
async getSwiper(){ 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})) this.swiperList = message.map(v=>({...v,image:v.image_src}))
} }
} }