vue-awesome-swiper报错踩坑记

nuxt.js 引入 vue-awesome-swiper 后,控制台报错window is not defined
window is not defined

原因:

Nuxt 在服务端渲染时找不到 window

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×