1、npm安裝swiper插件
npm install vue-awisome-swiper --save
2、在main.js中全局註冊(import並Vue.use) 注:需要引入swiper.css樣式
3、在組件中使用