@[页面会报错]Property or method “swiperOption” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
swiperOptions:{
pagination: {
el: ".swiper-pagination",
clickable: true, // 允许点击小圆点跳转
},
autoplay: {
delay: 3000,
disableOnInteraction: false, // 手动切换之后继续自动轮播
},
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
},
这里的swiperOptions不能是复数,再多也只能是swiperOption,修改之后就可以了
swiperOption:{
pagination: {
el: ".swiper-pagination",
clickable: true, // 允许点击小圆点跳转
},
autoplay: {
delay: 3000,
disableOnInteraction: false, // 手动切换之后继续自动轮播
},
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
},