nuxt.js 使用vue-awesome-swiper提示Failed to execute getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
代码如下:
<div
class="swiper-wrapper gallery-top"
v-swiper:swiperTop1="swiperOptionTop"
ref="swiperTop"
@slideChange="onSlideChange"
>
<div class="swiper-slide" v-for="item in showImgs()" :key="item.id">
<img :src="item.picUrl" @click="openNewWindow(item.forward)" class="gallery-img" />
</div>
</div>
网上有人说class需要使用swiper-wrapper,但是还不行,@slideChange="onSlideChange"
也没出发
已解决,解决方案传送门