mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 20:21:10 -04:00
v6 update
This commit is contained in:
36
resources/scripts/customer/layouts/LayoutBasic.vue
Normal file
36
resources/scripts/customer/layouts/LayoutBasic.vue
Normal file
@ -0,0 +1,36 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user