fix: session F5, terminal module core, logs proxmox
- router: tryRefresh() au premier chargement → plus besoin de se reconnecter après F5 (user restauré depuis le cookie refresh) - migration 003: terminal marqué is_core=1 + is_enabled=1 - proxmox.go: logs pour diagnostiquer l'erreur 502 (visible dans Paramètres → Logs) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
88831e3967
commit
1886071922
3 changed files with 11 additions and 1 deletions
|
|
@ -92,9 +92,11 @@ const router = createRouter({
|
|||
router.beforeEach(async (to) => {
|
||||
const authStore = useAuthStore()
|
||||
|
||||
// Vérifier si l'application est installée (appel API au premier chargement)
|
||||
// Au premier chargement : vérifier l'installation ET restaurer la session
|
||||
if (!authStore.installChecked) {
|
||||
await authStore.checkInstallation()
|
||||
// Restaurer la session depuis le cookie refresh si un token est en localStorage
|
||||
await authStore.tryRefresh()
|
||||
}
|
||||
|
||||
// Rediriger vers l'installation si pas encore configuré
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue