Новые правки

This commit is contained in:
Web-serfer 2026-05-06 00:03:01 +05:00
parent 3a246c0837
commit f3dbfb3587
3 changed files with 3 additions and 1 deletions

View file

@ -393,6 +393,7 @@ import { COMPANY } from "@constants";
} catch (e) {}
localStorage.removeItem('auth_token');
localStorage.removeItem('user');
localStorage.removeItem('pocketbase_auth');
document.querySelector('.header-right')?.classList.remove('auth-active');
// Редирект на текущую страницу
window.location.href = window.location.pathname + window.location.search + window.location.hash;

View file

@ -73,7 +73,7 @@ import { NAV_LINKS, COMPANY } from '@constants';
</div>
<!-- Кнопка входа ОСТАВЛЕНА ВНИЗУ -->
<a href="/login" class="mobile-login-btn">
<a href="/auth/sign-in" class="mobile-login-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path>
<polyline points="10 17 15 12 10 7"></polyline>

View file

@ -110,6 +110,7 @@ const firstLetter = userName ? userName.charAt(0).toUpperCase() : userEmail?.cha
// Очищаем localStorage
localStorage.removeItem('auth_token');
localStorage.removeItem('user');
localStorage.removeItem('pocketbase_auth');
// Перенаправляем на главную
window.location.href = '/';