在文件的js 部分
<nuxt /> 标签在头部来存放内容
在export default 里面layout:'name' 指定头部
出现这个报错
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 <p>, or missing <tbody>. Bailing hydration and performing full client-side render.
添加 <client-only> 在根节点添加