mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
chore: remove div in server render
This commit is contained in:
parent
0b769781c5
commit
c14580d8c1
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user