change: loading performance
This commit is contained in:
parent
7c8be0ccb9
commit
716b5535ae
14 changed files with 129 additions and 98 deletions
14
app.vue
14
app.vue
|
@ -3,19 +3,13 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import calculateTitle from "./composables/calculateTitle";
|
||||
import provideGlobal from "./composables/provideGlobal";
|
||||
|
||||
const { SEO } = await provideGlobal();
|
||||
const title = await calculateTitle();
|
||||
|
||||
const { metaDescription, keywords } = SEO ?? {};
|
||||
const { seo, title } = useGlobal();
|
||||
|
||||
useHead({
|
||||
title: title,
|
||||
title: title.value,
|
||||
meta: [
|
||||
{ name: "description", content: metaDescription },
|
||||
{ name: "keywords", content: keywords },
|
||||
{ name: "description", content: seo.value?.metaDescription },
|
||||
{ name: "keywords", content: seo.value?.keywords ?? "" },
|
||||
],
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue