From ab2cd0d346d947bcf85cc4311e4b7e952e499211 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 9 Oct 2025 17:07:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E4=B8=AD=E7=9A=84=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=95=B4=E6=B4=81=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/usePlaybackWebSocket.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/hooks/usePlaybackWebSocket.ts b/src/hooks/usePlaybackWebSocket.ts index 6e43200..a22755f 100644 --- a/src/hooks/usePlaybackWebSocket.ts +++ b/src/hooks/usePlaybackWebSocket.ts @@ -78,7 +78,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef { latestRobotData.set(robot.id, robot); }); @@ -140,12 +139,10 @@ export function usePlaybackWebSocket(editorService: ShallowRef) => { const editor = editorService.value; - console.log('[Playback] Batch update: Editor service is', editor ? 'available' : 'NOT available', '. Updates to process:', updates); if (!editor || updates.length === 0) return; updates.forEach(({ id, data }) => { const robotExists = editor.checkRobotById(id); - console.log(`[Playback] Checking robot ID: ${id}. Exists in editor: ${robotExists}`); if (robotExists) { const { x, y, angle, ...rest } = data; editor.updateRobot(id, rest); @@ -162,7 +159,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef { try { - console.log('[Playback] Render loop executing...'); const updates: Array<{ id: string; data: RobotRealtimeInfo }> = []; for (const [id, data] of latestRobotData.entries()) { updates.push({ id, data }); @@ -170,7 +166,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef 0) { - console.log(`[Playback] Render loop: Preparing to update ${updates.length} robots.`); batchUpdateRobots(updates); }