Skip to content

Commit 3f808d0

Browse files
committed
feat(content): Move toNuxt Content 3.1
1 parent 516119d commit 3f808d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/pages/cms/[...slug].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
const route = useRoute()
33
const path = route.path.replace('/cms', '')
4-
const { data: page } = await useAsyncData('page-' + path, () => {
4+
const { data: page } = await useAsyncData(`page-${path}`, () => {
55
return queryCollection('content').path(path).first()
66
})
77
</script>
@@ -19,4 +19,4 @@ const { data: page } = await useAsyncData('page-' + path, () => {
1919

2020
<footer><!-- ... --></footer>
2121
</div>
22-
</template>
22+
</template>

0 commit comments

Comments
 (0)