由于nuxt3是一个SSR 渲染方式,所以可以直接在mount钩子函数初始化swiper对象,或者在 created 钩子函数里,加上
if(process.client){ //在这里面初始化 swiper 对象
}