1
0

Дизайн Авторизации

Новая форма авторизации.
This commit is contained in:
2026-01-15 16:26:45 +07:00
parent 5c130fc01c
commit 36e844d4ea
2 changed files with 645 additions and 106 deletions

View File

@@ -219,8 +219,22 @@ const stopPolling = () => {
// ==================== ИНИЦИАЛИЗАЦИЯ ====================
onMounted(async () => {
// Store уже мог быть инициализирован при логине (prefetch)
await store.init()
await fetchCards()
// Проверяем предзагруженные карточки
const prefetchedCards = sessionStorage.getItem('prefetchedCards')
if (prefetchedCards) {
try {
cards.value = JSON.parse(prefetchedCards)
sessionStorage.removeItem('prefetchedCards')
} catch (e) {
await fetchCards()
}
} else {
await fetchCards()
}
startPolling()
if (window.lucide) window.lucide.createIcons()