bugfix kilépés
This commit is contained in:
parent
22edc5d9b7
commit
c3ffa53fcc
@ -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>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user