原因是因为Swiper提前初始化了,然而数据还没有加载完成。解决方法如下: 一、使用Vue提供的$nextTick()方法 二、在Swiper初始化时 转载于:https://www.cnblogs.com/hujieer/p/10309580.html