美文网首页
swiper/react thumbs Cannot conve

swiper/react thumbs Cannot conve

作者: chenjieyi | 来源:发表于2023-02-16 17:47 被阅读0次
    image.png

    解决方案:

    thumbs={{ swiper: thumbsSwiper }}
    

    改成

    thumbs={{ swiper: thumbsSwiper && !thumbsSwiper.destroyed ? thumbsSwiper : null, }}
    

    参考文献:https://github.com/nolimits4web/swiper/issues/5957
    ps:可在swiper github的issue搜索 Cannot convert undefined or null to object

    image.png

    相关文章

      网友评论

          本文标题:swiper/react thumbs Cannot conve

          本文链接:https://www.haomeiwen.com/subject/ehwpkdtx.html