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