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

nuxt 服务端渲染 DropdownMenu组件的标题并没有渲染出来 #13298

Open
CzyYYDS opened this issue Jan 2, 2025 · 3 comments
Open

nuxt 服务端渲染 DropdownMenu组件的标题并没有渲染出来 #13298

CzyYYDS opened this issue Jan 2, 2025 · 3 comments

Comments

@CzyYYDS
Copy link

CzyYYDS commented Jan 2, 2025

重现链接

https://codesandbox.io/p/devbox/tk8pnh

Vant 版本

4.9.15

描述一下你遇到的问题。

nuxt 服务端渲染 DropdownMenu组件的标题并没有渲染出来

image

如图顶部标题栏部分是空白,查看网页源代码也确认了并没有渲染出来

请问怎么解决

重现步骤

直接运行访问即可

设备/浏览器

No response

@MeteorSkyOne
Copy link

image
从链接访问看是正常的

@CzyYYDS
Copy link
Author

CzyYYDS commented Jan 3, 2025

image 从链接访问看是正常的

我这边页面加载会先显示空的组件,然后组件的文字有延迟再显示出来,查看源代码这个van-dropdown-menu__title也是没有在
服务端渲染成功的?
image

@Panyoujies
Copy link

image 从链接访问看是正常的

我这边页面加载会先显示空的组件,然后组件的文字有延迟再显示出来,查看源代码这个van-dropdown-menu__title也是没有在 服务端渲染成功的? image

我也是,应该是没有ssr功能,老哥你解决了嘛

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

No branches or pull requests

3 participants