#51 feat: logo del sitio editable desde el panel de administración

This commit is contained in:
2026-08-08 14:19:56 -05:00
parent 5aaaac1e45
commit 24fa4800a9
7 changed files with 157 additions and 22 deletions

View File

@@ -61,10 +61,12 @@
import { ref, computed, inject, onMounted, onBeforeUnmount, nextTick } from 'vue';
import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
import { useSettingsStore } from '@/stores/settings';
const api = inject('api');
const settingsStore = useSettingsStore();
const settings = ref(null);
const settings = computed(() => settingsStore.settings);
const mapEl = ref(null);
let map = null;
@@ -125,7 +127,7 @@ function handleResize() {
onMounted(async () => {
try {
settings.value = await api.getStoreSettings();
await settingsStore.fetchSettings(api);
await nextTick();
initMap();
} catch (error) {