Agenda, Agendador, Configurações
This commit is contained in:
+12
@@ -4,6 +4,8 @@ import { useRoute } from 'vue-router'
|
||||
import { supabase } from '@/lib/supabase/client'
|
||||
import { useTenantStore } from '@/stores/tenantStore'
|
||||
import { useEntitlementsStore } from '@/stores/entitlementsStore'
|
||||
import AjudaDrawer from '@/components/AjudaDrawer.vue'
|
||||
import { fetchDocsForPath } from '@/composables/useAjuda'
|
||||
|
||||
const route = useRoute()
|
||||
const tenantStore = useTenantStore()
|
||||
@@ -114,6 +116,9 @@ onMounted(async () => {
|
||||
|
||||
// snapshot inicial
|
||||
await debugSnapshot('mounted')
|
||||
|
||||
// Carrega docs de ajuda para a rota inicial
|
||||
fetchDocsForPath(route.path)
|
||||
})
|
||||
|
||||
// snapshot a cada navegação (isso é o que vai te salvar)
|
||||
@@ -121,10 +126,17 @@ watch(
|
||||
() => route.fullPath,
|
||||
async (to, from) => {
|
||||
await debugSnapshot(`route change: ${from} -> ${to}`)
|
||||
// Atualiza docs de ajuda ao navegar
|
||||
fetchDocsForPath(route.path)
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-view />
|
||||
|
||||
<!-- Drawer de ajuda global — fora de qualquer layout, sempre disponível -->
|
||||
<Teleport to="body">
|
||||
<AjudaDrawer />
|
||||
</Teleport>
|
||||
</template>
|
||||
Reference in New Issue
Block a user