changed functions for nuxt-friendly version

This commit is contained in:
2026-01-21 18:28:26 +00:00
parent 048bcd1b5a
commit 501580b2e0
4 changed files with 18 additions and 22 deletions

View File

@@ -27,14 +27,11 @@ const props = defineProps({
})
function logout() {
return fetch("/logout").then(
(response) => {
if (response.ok) {
window.location.href = "/";
}
}
)
return $fetch("/logout").then((r) => {
reloadNuxtApp({ path: "/" })
});
}
</script>