|
|
@ -1,14 +1,14 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useTitle } from '@vueuse/core' |
|
|
|
import { useHead, useRoute } from '#imports' |
|
|
|
import { useI18n, useRoute, useSidebar } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
|
|
|
|
const { te, t } = useI18n() |
|
|
|
const { te, t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
useHead({ |
|
|
|
const { hasSidebar } = useSidebar() |
|
|
|
title: route.meta?.title && te(route.meta.title as string) ? `${t(route.meta.title as string)} | NocoDB` : 'NocoDB', |
|
|
|
|
|
|
|
}) |
|
|
|
useTitle(route.meta?.title && te(route.meta.title) ? `${t(route.meta.title)} | NocoDB` : 'NocoDB') |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
|
<script lang="ts"> |
|
|
@ -19,7 +19,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="w-full h-full"> |
|
|
|
<div class="w-full h-full"> |
|
|
|
<Teleport to="#nc-sidebar-left"> |
|
|
|
<Teleport :to="hasSidebar ? '#nc-sidebar-left' : null" :disabled="!hasSidebar"> |
|
|
|
<slot name="sidebar" /> |
|
|
|
<slot name="sidebar" /> |
|
|
|
</Teleport> |
|
|
|
</Teleport> |
|
|
|
|
|
|
|
|
|
|
|