-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持nuxt.js 服务端渲染吗? #26
Comments
嗯,是用到了window对象。目前还不支持服务端渲染,之后会研究下这方面,看能不能支持上。 不过我觉得这种背景动画应该没必要上服务端渲染吧😅。 |
用了nuxt.js 所以来问下看看支不支持☺ |
怪不得nuxt.js里头炸了。。。 |
这是个不错的选择 用这个手法让代码在浏览器执行看看行不行(我不太会,不好意思) 我这么整的:
import Vue from 'vue'
import vueCanvasNest from 'vue-canvas-nest'
Vue.component('vue-canvas-nest', vueCanvasNest)
plugins: [
{src: '~/plugins/nest.js', mode: 'client'}
]
<vue-canvas-nest></vue-canvas-nest> 问题是会有报错
<client-only>
<vue-canvas-nest></vue-canvas-nest>
</client-only> |
我刚刚测试了,发现只有页面下半部分有图案出现,而且图案跟鼠标的位置有偏差 |
里面应该用了Window 对象,然后就是报错 未定义
The text was updated successfully, but these errors were encountered: