From e60ba995b95c8ae6702966ddabbdc35d75b3ef62 Mon Sep 17 00:00:00 2001 From: Warren Date: Wed, 20 May 2026 14:56:21 +0800 Subject: [PATCH] Default API to M5Max48:3002; preserve portal_config on session expiry --- .env.development | 2 +- src/api/client.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 9349b9e..7c6b255 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ # Portal Development Environment VITE_APP_TITLE=Momentry Portal (Development) -VITE_API_BASE_URL=http://127.0.0.1:3002 +VITE_API_BASE_URL=http://192.168.110.201:3002 VITE_API_KEY=muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69 diff --git a/src/api/client.ts b/src/api/client.ts index fe19003..83d966b 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -127,7 +127,6 @@ function isTauri(): boolean { function handleSessionExpired() { console.warn("Session expired or connection error, redirecting to login..."); localStorage.removeItem('momentry_user'); - localStorage.removeItem('portal_config'); localStorage.removeItem('momentry_api_key'); if (window.location.pathname !== '/login') { window.location.href = '/login';