Тестовый коммит после удаления husky

This commit is contained in:
2025-03-05 01:02:09 +03:00
parent 97ca5e4b64
commit 3157ad0cd9
118 changed files with 8177 additions and 8530 deletions

View File

@@ -2,11 +2,26 @@
<div class="dashboard-view">
<h1>Дашборд</h1>
<p>Добро пожаловать в панель управления!</p>
<!-- Добавьте проверку на администратора -->
<div v-if="isAdmin">
<h2>Административные функции</h2>
<AccessTokenManager />
<RoleManager />
<AccessControl />
</div>
</div>
</template>
<script>
export default {
name: 'DashboardView'
}
</script>
<script setup>
import { computed } from 'vue';
import { useAuthStore } from '../stores/auth';
import AccessTokenManager from '../components/AccessTokenManager.vue';
import RoleManager from '../components/RoleManager.vue';
import AccessControl from '../components/AccessControl.vue';
const authStore = useAuthStore();
const isAdmin = computed(() => authStore.isAdmin);
console.log('Статус администратора:', isAdmin.value); // Для отладки
</script>