swiper.vue
home.vue
main.js
// The Vue build version to load with the import
command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue’
import App from './App’
import router from './router’
import fastClick from 'fastclick’
import VueAwesomeSwiper from 'vue-awesome-swiper’
import 'styles/reset.css’
import 'styles/border.css’
import 'styles/iconfont.css’
import ‘swiper/dist/css/swiper.css’
Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
el: ‘#app’,
router,
components: { App },
template: ‘’
})
报的是new vue 那一行的错误
课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握
了解课程