26 lines
690 B
Vue
26 lines
690 B
Vue
<script setup>
|
|
import { onMounted } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
import { useTenantStore } from '@/stores/tenantStore'
|
|
import { useEntitlementsStore } from '@/stores/entitlementsStore'
|
|
|
|
const route = useRoute()
|
|
|
|
const tenant = useTenantStore()
|
|
const ent = useEntitlementsStore()
|
|
|
|
onMounted(async () => {
|
|
await tenant.loadSessionAndTenant()
|
|
await ent.loadForTenant(tenant.activeTenantId)
|
|
|
|
// pode remover esses logs depois
|
|
console.log('tenant.activeTenantId', tenant.activeTenantId)
|
|
console.log('role', tenant.activeRole)
|
|
console.log('can online_scheduling.manage?', ent.can('online_scheduling.manage'))
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<router-view />
|
|
</template>
|