Skip to content
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

vue-egg-ssr 服务端渲染与客户端渲染DOM结构不匹配 #4

Open
SunnyCyx opened this issue May 29, 2020 · 2 comments
Open

vue-egg-ssr 服务端渲染与客户端渲染DOM结构不匹配 #4

SunnyCyx opened this issue May 29, 2020 · 2 comments

Comments

@SunnyCyx
Copy link

当我在项目中使用[email protected]时候,代码正常。偶然的一次更新包,使得我们的项目开始报错
QQ图片20200529104757

请问要如何进一步的排查问题

@hubcarl
Copy link
Collaborator

hubcarl commented May 31, 2020

@SunnyCyx 服务端渲染后,浏览器右键看看生成的 html 源代码 与 客户端 hydrate 渲染的内容对比,看看哪部分不一致?

@SunnyCyx
Copy link
Author

SunnyCyx commented Jun 1, 2020

@SunnyCyx 服务端渲染后,浏览器右键看看生成的 html 源代码 与 客户端 hydrate 渲染的内容对比,看看哪部分不一致?

image
image
image
noMenu传值经历了三层,导致了服务端渲染跟客户端渲染DOM结构不匹配,这种情况要如何处理更好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants