Uncaught RangeError: Maximum call stack size exceeded

来源:7-4 Vue项目首页 - 首页轮播图

慕粉4201155

2019-01-26

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 那一行的错误

写回答

3回答

慕粉4201155

提问者

2019-01-26

import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home/home'

Vue.use(Router)

export default new Router({
 routes: [
   {
     path: '/',
     name: 'Home',
     component: Home
   }
 ]
})

0
0

慕粉4201155

提问者

2019-01-26

<template>
 <div class="wrapper">
   <swiper :options="swiperOption">
     <swiper-slide v-for="item of swiperList" :key="item.id">
       <img class="swiper-img" :src="item.imgUrl">
     </swiper-slide>
     <div class="swiper-pagination"  slot="pagination"></div>
   </swiper>
 </div>
</template>

0
0

Dell

2019-01-26

template里没东西啊,要看你的template

0
9
Dell
回复
慕粉4201155
你加我微信dell-js
2019-01-29
共9条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程