add storage

This commit is contained in:
2026-07-18 16:16:10 +07:00
parent ad68ccc297
commit 0731123fbb
7 changed files with 375 additions and 23 deletions
+29
View File
@@ -0,0 +1,29 @@
<template>
<header class="header">
<p @click="goToLogout" class="btn-login">
Выйти
</p>
</header>
<p>
Доброго времени суток, {{ authStore.username }}.
</p>
<p>
{{ authStore.userRoles }}
</p>
</template>
<script setup lang="ts">
import router from '@/router';
import { useAuthStore } from '@/stores/auth';
const authStore = useAuthStore();
const goToLogout = () => {
authStore.logout()
router.push('/login')
}
</script>
<style scoped></style>