From 021031c6eb8242b685331a274bcf5dd99254e8d9 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Fri, 25 Apr 2025 18:25:28 +0800 Subject: [PATCH] update --- packages/frontend/src/stores/layout.store.ts | 4 ++-- packages/frontend/src/stores/session.store.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/stores/layout.store.ts b/packages/frontend/src/stores/layout.store.ts index 942c4d2..3d2333c 100644 --- a/packages/frontend/src/stores/layout.store.ts +++ b/packages/frontend/src/stores/layout.store.ts @@ -308,8 +308,8 @@ export const useLayoutStore = defineStore('layout', () => { } // --- Log the final layout configuration after initialization --- - console.log('[Layout Store] Final Initialized Layout Tree:', JSON.stringify(layoutTree.value, null, 2)); - console.log('[Layout Store] Final Initialized Sidebar Panes:', JSON.stringify(sidebarPanes.value, null, 2)); + // console.log('[Layout Store] Final Initialized Layout Tree:', JSON.stringify(layoutTree.value, null, 2)); + // console.log('[Layout Store] Final Initialized Sidebar Panes:', JSON.stringify(sidebarPanes.value, null, 2)); } // --- Helper for debounced persistence --- diff --git a/packages/frontend/src/stores/session.store.ts b/packages/frontend/src/stores/session.store.ts index 096d00e..ef36aa2 100644 --- a/packages/frontend/src/stores/session.store.ts +++ b/packages/frontend/src/stores/session.store.ts @@ -197,7 +197,7 @@ export const useSessionStore = defineStore('session', () => { const hostname = window.location.hostname; // 添加详细日志 console.log(`[SessionStore openNewSession] Protocol: ${protocol}, Hostname: ${hostname}`); - const wsUrl = `${protocol}//${window.location.hostname}/`; + const wsUrl = `${protocol}//${window.location.hostname}/ws/`; // 添加 /ws/ 路径 console.log(`[SessionStore] Generated WebSocket URL: ${wsUrl}`); // 添加日志记录生成的 URL wsManager.connect(wsUrl); console.log(`[SessionStore] 已为会话 ${newSessionId} 启动 WebSocket 连接。`); @@ -378,7 +378,7 @@ console.log(`[SessionStore openNewSession] Protocol: ${protocol}, Hostname: ${ho // 满足最高优先级:重连当前活动会话 console.log(`[SessionStore] 活动会话 ${activeSessionId.value} 已断开或出错,尝试重连...`); const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; - const wsUrl = `${protocol}//${window.location.hostname}/`; // 与 openNewSession 保持一致 + const wsUrl = `${protocol}//${window.location.hostname}/ws/`; // 添加 /ws/ 路径并与 openNewSession 保持一致 const hostname = window.location.hostname; // 添加详细日志 console.log(`[SessionStore handleConnectRequest] Protocol: ${protocol}, Hostname: ${hostname}`);