Новые правки
This commit is contained in:
parent
3a246c0837
commit
f3dbfb3587
3 changed files with 3 additions and 1 deletions
|
|
@ -393,6 +393,7 @@ import { COMPANY } from "@constants";
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
localStorage.removeItem('auth_token');
|
localStorage.removeItem('auth_token');
|
||||||
localStorage.removeItem('user');
|
localStorage.removeItem('user');
|
||||||
|
localStorage.removeItem('pocketbase_auth');
|
||||||
document.querySelector('.header-right')?.classList.remove('auth-active');
|
document.querySelector('.header-right')?.classList.remove('auth-active');
|
||||||
// Редирект на текущую страницу
|
// Редирект на текущую страницу
|
||||||
window.location.href = window.location.pathname + window.location.search + window.location.hash;
|
window.location.href = window.location.pathname + window.location.search + window.location.hash;
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ import { NAV_LINKS, COMPANY } from '@constants';
|
||||||
</div>
|
</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">
|
<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>
|
<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>
|
<polyline points="10 17 15 12 10 7"></polyline>
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ const firstLetter = userName ? userName.charAt(0).toUpperCase() : userEmail?.cha
|
||||||
// Очищаем localStorage
|
// Очищаем localStorage
|
||||||
localStorage.removeItem('auth_token');
|
localStorage.removeItem('auth_token');
|
||||||
localStorage.removeItem('user');
|
localStorage.removeItem('user');
|
||||||
|
localStorage.removeItem('pocketbase_auth');
|
||||||
|
|
||||||
// Перенаправляем на главную
|
// Перенаправляем на главную
|
||||||
window.location.href = '/';
|
window.location.href = '/';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue