The problem of using swiper in vue

when you use vue-awesome-swiper to make a rotation picture on the mobile end to get a picture from
to the background, when the last picture is switched to the second picture instead of the first
, Baidu has a way to initialize swiper
after getting data for a long time, but swiper doesn"t seem to have an api to initialize
to do this effect in the component or the boss who has encountered this hole, please do not hesitate to thank you

first.
Mar.06,2021

define swiper data

data(){
    return {
         swiperdata:[]
    }
}

send a request to get data

created(){
    asiox.get().then(res=>{
    
        this.$nextTick(()=>{
            this.swiperdata=[...]
        })
    })
}

components

< swiper Vmurf = "swiperdata&&swiperdata.length > 0" > < / swiper >

Menu