app.vue 719 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <Html :lang="i18nHead.htmlAttrs.lang" :dir="i18nHead.htmlAttrs.dir">
  3. <CommonCookiesConsent />
  4. <div id="top" />
  5. <LayoutNavigation />
  6. <nuxt-page />
  7. <LayoutFooter />
  8. </Html>
  9. </template>
  10. <script setup lang="ts">
  11. import UrlUtils from '~/services/utils/urlUtils'
  12. const layoutStore = useLayoutStore()
  13. layoutStore.resetAnchoredSections()
  14. const i18nHead = useLocaleHead({
  15. addDirAttribute: true,
  16. identifierAttribute: 'id',
  17. addSeoAttributes: true,
  18. })
  19. const route = useRoute()
  20. const runtimeConfig = useRuntimeConfig()
  21. useHead(() => ({
  22. link: [
  23. {
  24. rel: 'canonical',
  25. href: UrlUtils.join(runtimeConfig.public.siteUrl as string, route.path),
  26. },
  27. ],
  28. }))
  29. </script>