Files
crater/resources/scripts/customer/layouts/LayoutBasic.vue
Mohit Panjwani bdea879273 v6 update
2022-01-10 16:06:17 +05:30

37 lines
876 B
Vue

<template>
<div v-if="isAppLoaded" class="h-full">
<NotificationRoot />
<SiteHeader />
<!-- <SiteSidebar /> -->
<main class="mt-16 pb-16 h-screen h-screen-ios overflow-y-auto min-h-0">
<router-view />
</main>
</div>
<!-- <BaseGlobalLoader v-else /> -->
</template>
<script setup>
import { ref, onMounted, computed } from 'vue'
import SiteHeader from '@/scripts/customer/layouts/partials/TheSiteHeader.vue'
import NotificationRoot from '@/scripts/components/notifications/NotificationRoot.vue'
import { useGlobalStore } from '@/scripts/customer/stores/global'
import { useRoute } from 'vue-router'
const globalStore = useGlobalStore()
const route = useRoute()
const isAppLoaded = computed(() => {
return globalStore.isAppLoaded
})
loadData()
async function loadData() {
await globalStore.bootstrap(route.params.company)
}
</script>