1.swiper6.x和3.x 引入不同
6.x引入方法
import 'swiper/swiper-bundle.css';
import {
Swiper, SwiperSlide } from 'vue-awesome-swiper' //注意大小写
3.x引入方法
mport 'swiper/dist/css/swiper.css';
import {
swiper, swiperSlide } from 'vue-awesome-swiper'
2.指向不同
6.x版本 打印 this.$refs.mySwiper.swiper 是undefined,没有swiper属性
3.x 打印 this.$refs.