feat(account): implement user account page with skin upload

This commit is contained in:
2025-06-17 12:01:08 +03:00
parent d6059f4325
commit e391c16468
5 changed files with 235 additions and 5 deletions

View File

@@ -3,14 +3,13 @@
<nav>
<router-link to="/">Главная</router-link> |
<!-- Показываем, если пользователь НЕ залогинен -->
<template v-if="!authStore.isAuthenticated">
<router-link to="/login">Вход</router-link> |
<router-link to="/register">Регистрация</router-link>
</template>
<!-- Показываем, если пользователь залогинен -->
<template v-else>
<router-link to="/account">Личный кабинет</router-link>
<span>Привет, {{ authStore.user?.username }}!</span> |
<a @click="authStore.handleLogout" href="#">Выход</a>
</template>