chore: remove div in server render

This commit is contained in:
Michael Brevard 2024-06-13 01:47:45 +03:00 committed by GitHub
parent 0b769781c5
commit c14580d8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,9 +19,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
inheritAttrs: false, inheritAttrs: false,
setup (_, { attrs }) { setup (_, { attrs }) {
if (import.meta.server) { if (import.meta.server) {
return () => h('div', {}, [ return () => h(componentLoader, attrs)
h(componentLoader, attrs),
])
} }
const nuxt = useNuxtApp() const nuxt = useNuxtApp()