-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
42 lines (38 loc) · 923 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script setup lang="ts">
import { useSeo } from '~/composables/useSeo'
const route = useRoute()
function initSeoMeta() {
useSeo({
title: route.meta.title as string,
ogTitle: route.meta.title as string,
description: route.meta.description as string,
ogDescription: route.meta.description as string,
ogImageUrl: route.meta.image as string,
twitterTitle: route.meta.title as string,
twitterDescription: route.meta.description as string,
twitterImage: route.meta.image as string,
})
}
initSeoMeta()
watch(route, initSeoMeta)
</script>
<template>
<div>
<NuxtLayout name="base">
<NuxtPage />
</NuxtLayout>
</div>
</template>
<style>
.page-enter-active {
transition: all 1.5s;
}
.page-leave-active {
transition: all 0.2s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
</style>