The problem that the callback function of vue-awesome-swiper does not trigger

data() {
            return {
                swiperOption: {
                    speed: 1000,
                    keyboard : true,
                    navigation: {
                        nextEl: ".swiper-button-next",
                        prevEl: ".swiper-button-prev",
                    },
                    loop:true,
                    onSlideChangeStart: swiper => {
                        //swiper
                        alert(11)
                    },

                    on: {
                        init: function(){
                            //Swiper
                            alert("slide"+this.activeIndex);
                        }
                    }
                        // some swiper options/callbacks
                    //  swiper  api 
                    // ...
                }
            }
        },
    initonSlideChangeStart
Feb.10,2022

you should put the slideChange method in on
as follows

on:{
    slideChange: function(){
      alert('activeIndex'+this.activeIndex);
    }
}

onSlideChangeEnd: function(swiper){
      alert(swiper.activeIndex) //slide
    }
Menu