先安装swiper
    npm install swiper —save

    引入
    import Swiper from “swiper”
    import ‘../../../node_modules/swiper/css/swiper.min.css’;