bugfix kilépés

This commit is contained in:
Juhász Ervin 2026-01-03 16:11:55 +01:00
parent 22edc5d9b7
commit c3ffa53fcc

View File

@ -248,10 +248,8 @@ onUnmounted(() => {
window.removeEventListener('popstate', handlePopState) window.removeEventListener('popstate', handlePopState)
}) })
function logOut() { async function logOut() {
token.value = null await auth.logout()
auth.user = null
router.push({ path: '/login' })
} }
</script> </script>