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
}
]
})00 -
慕粉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>00 -
Dell
2019-01-26
template里没东西啊,要看你的template
092019-01-29
相似问题