vue3+Nuxt3运行代码是提示如下警告
[Vue warn]: Hydration attribute mismatch on <ul id="sub_menu_5_$$_sub1-popup" class="ant-menu ant-menu-sub ant-menu-inline" data-menu-list="true" style="display:none;">…</ul>
- rendered on server: id="sub_menu_5_$$_sub1-popup"
- expected on client: id="sub_menu_1_$$_sub1-popup"
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
You should fix the source of the mismatch.
解决:
[Vue][SSR]抑制水合不匹配警告