web: implement logout logic

This commit is contained in:
Mika 2024-07-09 12:11:21 +02:00
parent d61b4f3fcb
commit def6cb6195

View file

@ -19,7 +19,7 @@
clearable
rounded="pill"
></v-text-field>
<v-btn icon variant="outlined" >
<v-btn icon variant="outlined" @click="handlelogout">
<LogOut />
</v-btn>
</v-toolbar>
@ -29,6 +29,14 @@
<script setup lang="ts">
import { LogOut } from 'lucide-vue-next';
import { store } from '@/store';
function handlelogout() {
console.log('logout');
store.setToken(null);
}
</script>
<style scoped>