Compare commits

..

No commits in common. "5892921a7cea6b9c17f3143ea823ef35d5ee3695" and "9fc830a98b61ce082ea53c232873c3f5d9046a59" have entirely different histories.

4 changed files with 1 additions and 31 deletions

View File

@ -23,7 +23,7 @@ const links = [{
<template #right> <template #right>
<UColorModeButton /> <UColorModeButton />
<UserDropdown /> <UButton to="#" target="_blank" icon="i-heroicons-user-solid" color="gray" variant="ghost" />
</template> </template>
<template #panel> <template #panel>

View File

@ -1,22 +0,0 @@
<script setup lang="ts">
const links = [{
label: 'Logout',
to: '/logout',
icon: 'i-heroicons-arrow-left-on-rectangle',
}]
</script>
<template>
<UPopover>
<UButton icon="i-heroicons-user-solid" color="gray" variant="ghost" />
<template #panel>
<div class="p-4">
<UNavigationLinks :links="links" />
</div>
</template>
</UPopover>
</template>
<style scoped>
</style>

View File

@ -76,9 +76,6 @@ export function useAuth<T = User>() {
await $larafetch('/logout', { method: 'post' }) await $larafetch('/logout', { method: 'post' })
user.value = null user.value = null
const csrf_cookie = useCookie('XSRF-TOKEN')
csrf_cookie.value = null
await router.push('/login') await router.push('/login')
} }

View File

@ -1,5 +0,0 @@
<script setup lang="ts">
definePageMeta({ middleware: ['auth'] })
const { logout } = useAuth()
logout()
</script>