-
Notifications
You must be signed in to change notification settings - Fork 2.1k
服务端渲染不用vuex可以吗? #91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
可以,但你需要自己实现类似的 prefetch 逻辑 |
@freemember007 我也在探索不用 vuex 实现的方案,请问你找到解决方案了吗? |
@youngwind @freemember007
// entry-client.js 把数据(window中)赋值给store.state
// app.js ,store就是全局对象,赋给data
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
vuex写得太麻烦,store可以用一个全局变量替吗?也就是说不用vuex实现服务端渲染。
The text was updated successfully, but these errors were encountered: