[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content.

[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. 
This is likely caused by incorrect HTML markup, for example nesting block-level elements inside 

, or missing . Bailing hydration and performing full client-side render.

nuxt渲染页面时报出警告,经尝试发现是在vue文件中template的直接子文件夹div里直接写文本导致,用标签包起来即可。

你可能感兴趣的:(前端)