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