From 36bbcf15f37dc8ae7b6ce1ffc5b45d8473099800 Mon Sep 17 00:00:00 2001 From: openclaw Date: Fri, 6 Mar 2026 15:30:21 +0800 Subject: [PATCH] fix: keep session on frontend load --- web/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 67999fc..7f0410b 100644 --- a/web/index.html +++ b/web/index.html @@ -648,8 +648,12 @@ createApp({ else stopTimer(); }); + // keep session token in localStorage; do not force logout on load onMounted(() => { - logout(); + if (localStorage.getItem('t')) { + loggedIn.value = true; + refreshAll(); + } }); return {