SEO 配置
SEO and Meta · Get Started with Nuxt
vue
<script setup lang="ts">
type User = {
id: string,
email: string,
password: string,
created_at: string,
updated_at: string,
}
const {status, data} = await useLazyFetch<User>('/api/cokbok')
const user = ref<User | null>(null)
if (data) {
user.value = data.value
}
useSeoMeta({
title: user.value?.id,
description: user.value?.email,
})
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24