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)
})
function logOut() {
token.value = null
auth.user = null
router.push({ path: '/login' })
async function logOut() {
await auth.logout()
}
</script>