Default API to M5Max48:3002; preserve portal_config on session expiry

This commit is contained in:
Warren
2026-05-20 14:56:21 +08:00
parent a6d74d60c7
commit e60ba995b9
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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';