Skip to content

Commit e6bd9e1

Browse files
committed
Fixed AsideMenu logout issue
1 parent 04c768f commit e6bd9e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/Components/AsideMenuLayer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup>
2+
import { Inertia } from '@inertiajs/inertia'
23
import { mdiLogout, mdiClose } from '@mdi/js'
34
import { computed } from 'vue'
45
import { useLayoutStore } from '@/Stores/layout.js'
@@ -27,7 +28,7 @@ const logoutItem = computed(() => ({
2728
}))
2829
2930
const logoutItemClick = () => {
30-
//
31+
Inertia.post(route('logout'))
3132
}
3233
3334
const menuClick = (event, item) => {

0 commit comments

Comments
 (0)