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
    }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be6975-3182c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be6975-3182c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?