From fe66a2e78dbacf12790ae4dd8af818f118b110be Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 13 Jun 2026 16:29:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E9=99=8D=E4=BD=8E=20dashboard=20SS?= =?UTF-8?q?E=20=E6=9A=AB=E6=99=82=E9=87=8D=E9=80=A3=E5=99=AA=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/stores/dashboard.store.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/web/src/stores/dashboard.store.ts b/apps/web/src/stores/dashboard.store.ts index 057a896e..af361a11 100644 --- a/apps/web/src/stores/dashboard.store.ts +++ b/apps/web/src/stores/dashboard.store.ts @@ -287,11 +287,10 @@ export const useDashboardStore = create()( // Error handling with exponential backoff eventSource.onerror = (e) => { - console.error('[SSE] Error:', e) - const attempts = get().reconnectAttempts if (attempts >= MAX_RECONNECT_ATTEMPTS) { + console.error('[SSE] Max reconnect attempts reached:', e) set({ connectionStatus: 'error', error: 'Max reconnection attempts reached', @@ -312,7 +311,7 @@ export const useDashboardStore = create()( MAX_RECONNECT_DELAY ) - console.log(`[SSE] Reconnecting in ${delay}ms (attempt ${attempts + 1})`) + console.warn(`[SSE] Reconnecting in ${delay}ms (attempt ${attempts + 1})`, e) if (reconnectTimeout) clearTimeout(reconnectTimeout) reconnectTimeout = setTimeout(() => {