mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
Fix: añadido goto a /
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
import { sesionStore } from '@/stores/usuario';
|
||||
import { onMount } from 'svelte';
|
||||
import { apiBase } from '@/stores/url';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
let menuOpen = $state(false);
|
||||
const toggleMenu = () => (menuOpen = !menuOpen);
|
||||
@@ -40,6 +41,7 @@
|
||||
console.log("fallo el lougout")
|
||||
} finally{
|
||||
sesionStore.reset();
|
||||
goto("/");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user