mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(templates): generate js templates
This commit is contained in:
parent
f24d9689c0
commit
2c59081c6c
@ -95,7 +95,7 @@ export const RenderPlugin = () => {
|
|||||||
default: JSON.stringify(value)
|
default: JSON.stringify(value)
|
||||||
}]))
|
}]))
|
||||||
const vueCode = [
|
const vueCode = [
|
||||||
'<script setup lang="ts">',
|
'<script setup>',
|
||||||
title && 'import { useMeta } from \'#app\'',
|
title && 'import { useMeta } from \'#app\'',
|
||||||
`const props = defineProps(${props})`,
|
`const props = defineProps(${props})`,
|
||||||
title && 'useMeta(' + genObjectFromRawEntries([
|
title && 'useMeta(' + genObjectFromRawEntries([
|
||||||
|
Loading…
Reference in New Issue
Block a user