<swiper
class="ul"
:slidesPerView="4"
:speed="100"
:autoplay="{
delay: 0,
disableOnInteraction: false,
stopOnLastSlide: false,
}"
:spaceBetween="20"
:modules="modules"
:loop='true'
:loopFillGroupWithBlank='true'
:loopPreventsSlide='true'
>
查了半天,都说是因为动态数据异步的原因,我把数据写死了依然无效
后来头发薅光了才找到原因 :slidesPerView="4" 这个显示个数必须要能整除数据总数才有效!!!