prerender-website icon indicating copy to clipboard operation
prerender-website copied to clipboard

预渲染之后swiper插件不渲染

Open Peter-Success opened this issue 6 years ago • 2 comments

ue的预渲染的页面引用了swiper 但是build之后swiper不生效 怎么怎么解决啊?

Peter-Success avatar Apr 22 '19 10:04 Peter-Success

不知道你的 swiper 是采用哪种方式引入的;build 之后 swiper 不生效,可以从浏览器调试器中查看,是否有资源请求出错

Neveryu avatar Apr 25 '19 03:04 Neveryu

是用ES6的import方式引用的,我换成直接在静态页面引入script的形式引用打包之后就正常,至于为什么大神能否解释?

Peter-Success avatar Apr 25 '19 04:04 Peter-Success