先来看一下官方方法 vue-awesome-swiper
官方推荐使用
import 'swiper/css/swiper.css'
但实际上版本已经过时!!!
此时我用的是 6.0.0版本
可以发现我node_module下的swiper中没有css文件夹
查阅官方git的issues后知道要转变为
import 'swiper/swiper-bundle.css'
官方推荐使用
import 'swiper/css/swiper.css'
但实际上版本已经过时!!!
import 'swiper/swiper-bundle.css'