VueAwesomeSwiper使用时超过最大堆栈调用大小
- vue项目使用VueAwesomeSwiper时报了Uncaught RangeError: Maximum call stack size exceeded的错误,经网上查找解决办法发现是vue的name属性不能设置为“swiper”
<template>
<div class="swiper">
<swiper :options="swiperOption">
<swiper-slide v-for="slide in swiperSlides" :key="slide">I'm Slide {{ slide }}</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</div>
</template>
<script>
export default {
name: 'swiper',//=>错误的:name属性不能设置为swiper
name: 'home-swiper' // => 可以使用的