mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:01:08 +02:00
fix(manacore): update app layout
Minor updates to manacore app layout. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
fd3341ff4d
commit
fca93a9d35
1 changed files with 8 additions and 2 deletions
|
|
@ -125,8 +125,14 @@
|
|||
|
||||
$effect(() => {
|
||||
// Redirect to login if not authenticated (after initialization)
|
||||
if (authStore.initialized && !authStore.isAuthenticated) {
|
||||
goto('/login');
|
||||
// Use a small delay to ensure state has propagated after navigation
|
||||
if (authStore.initialized && !authStore.loading && !authStore.isAuthenticated) {
|
||||
// Small delay to handle navigation timing
|
||||
setTimeout(() => {
|
||||
if (!authStore.isAuthenticated) {
|
||||
goto('/login');
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue