changed functions for nuxt-friendly version
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user