-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
24 lines (24 loc) · 851 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
<template>
<!-- <NuxtLoadingIndicator color="var(--el-color-primary)" v-shared="'loading-bar'" /> -->
<NuxtPwaAssets />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<!-- <client-only><pwa-prompt /></client-only> -->
</template>
<script setup lang="ts">
import "@/assets/scss/index.scss";
const route = useRoute();
if (!route.meta.customHead) useHead({
title: route.meta.title ?? route.name,
meta: [{ name: 'description', content: route.meta.description as string ?? "" }]
});
if (!route.meta.disableSEO) useSeoMeta({
title: route.meta.title ?? route.name,
ogTitle: String(route.meta.title ?? route.name ?? ""),
description: route.meta.description as string ?? "",
ogDescription: route.meta.description as string ?? "",
...(route.meta.image ? { ogImage: route.meta.image } : {}) as any,
});
</script>
<style lang="scss"></style>