mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(ui-templates): switch to useHead
import (#89)
This commit is contained in:
parent
617a0f5a72
commit
2db880ab30
@ -96,9 +96,9 @@ export const RenderPlugin = () => {
|
||||
}]))
|
||||
const vueCode = [
|
||||
'<script setup>',
|
||||
title && 'import { useMeta } from \'#app\'',
|
||||
title && 'import { useHead } from \'#imports\'',
|
||||
`const props = defineProps(${props})`,
|
||||
title && 'useMeta(' + genObjectFromRawEntries([
|
||||
title && 'useHead(' + genObjectFromRawEntries([
|
||||
['title', `\`${title}\``],
|
||||
['script', inlineScripts.map(s => ({ children: `\`${s}\`` }))],
|
||||
['style', [{ children: `\`${globalStyles}\`` }]]
|
||||
|
Loading…
Reference in New Issue
Block a user