mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt3): return render function for <Head>
(#3213)
This commit is contained in:
parent
0ca3d5cf7d
commit
9734856fb0
@ -194,7 +194,7 @@ export const Style = defineComponent({
|
||||
// <head>
|
||||
export const Head = defineComponent({
|
||||
name: 'Head',
|
||||
setup: (_props, ctx) => ctx.slots.default
|
||||
setup: (_props, ctx) => () => ctx.slots.default?.()
|
||||
})
|
||||
|
||||
// <html>
|
||||
|
3
test/fixtures/basic/pages/index.vue
vendored
3
test/fixtures/basic/pages/index.vue
vendored
@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<Head>
|
||||
<Title>Basic fixture</Title>
|
||||
</Head>
|
||||
<h1>Hello Vue 3</h1>
|
||||
<div>Config: {{ $config.testConfig }}</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user