diff --git a/src/hooks/usePlaybackWebSocket.ts b/src/hooks/usePlaybackWebSocket.ts index c3a3c8a..5aa9618 100644 --- a/src/hooks/usePlaybackWebSocket.ts +++ b/src/hooks/usePlaybackWebSocket.ts @@ -171,7 +171,7 @@ export function usePlaybackWebSocket(editorService: ShallowRef { const robotExists = editor.checkRobotById(id); if (robotExists) { - const { x, y, angle, state, ...rest } = data; + const { x, y, angle, state, isCharging, isCarrying, canOrder, ...rest } = data; const pen = editor.getPenById(id); const currentState = pen?.robot?.state; // 将业务数据和位置数据合并到一个对象中,通过 setValue 一次性更新 @@ -186,10 +186,17 @@ export function usePlaybackWebSocket(editorService: ShallowRef