nuxt.js 使用vue-awesome-swiper提示getComputedStyle' on 'Window': parameter 1 is not of type 'Element'?-灵析社区

超好看鸭

![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240928/46a4a7b9d62960ef92d735c73ea5f126.png) nuxt.js 使用vue-awesome-swiper提示Failed to execute getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. 代码如下: 网上有人说class需要使用swiper-wrapper,但是还不行,`@slideChange="onSlideChange"`也没出发

阅读量:206

点赞量:0

问AI
已解决,"解决方案传送门" (https://link.segmentfault.com/?enc=T9Bf3WJ31t3LyPaJzvlCng%3D%3D.WecjHk%2FZDqAO8ExpfVw0a0ewTPhB7zN%2FYRA%2Bg2tCaqWPaxpqPAe%2F2X6zcKPIwoTZ2VgGOZqbG9PB3bSO7cWCLw%3D%3D)