28 lines
622 B
Vue
28 lines
622 B
Vue
<script setup lang="ts">
|
|
import AppLayout from '@/layouts/app/AppSidebarLayout.vue';
|
|
// import AppLayout from '@/layouts/app/AppHeaderLayout.vue';
|
|
import type { BreadcrumbItemType } from '@/types';
|
|
import { computed, onMounted } from 'vue';
|
|
|
|
interface Props {
|
|
breadcrumbs?: BreadcrumbItemType[];
|
|
}
|
|
|
|
withDefaults(defineProps<Props>(), {
|
|
breadcrumbs: () => [],
|
|
});
|
|
|
|
onMounted(() => {
|
|
if (navigator.platform.toUpperCase().indexOf('MAC') >= 0) {
|
|
document.body.classList.add('is-mac')
|
|
}
|
|
})
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<AppLayout :breadcrumbs="breadcrumbs">
|
|
<slot />
|
|
</AppLayout>
|
|
</template>
|