fix(nuxt3): return render function for <Head> (#3213)

This commit is contained in:
Daniel Roe 2022-02-14 10:46:27 +00:00 committed by GitHub
parent 0ca3d5cf7d
commit 9734856fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -1,5 +1,8 @@
<template>
<div>
<Head>
<Title>Basic fixture</Title>
</Head>
<h1>Hello Vue 3</h1>
<div>Config: {{ $config.testConfig }}</div>
</div>