diff --git a/src/components/PlaybackController.vue b/src/components/PlaybackController.vue index ab62a2b..b01b494 100644 --- a/src/components/PlaybackController.vue +++ b/src/components/PlaybackController.vue @@ -325,21 +325,6 @@ const handleTimelineClick = (event: MouseEvent) => { color: #555; white-space: nowrap; } - -body[data-theme='dark'] { - .tick { - background-color: #777; - &.tick-major { - background-color: #ddd; - } - } - .tick-label { - color: #aaa; - } - .timeline-container::after { - background-color: #434343; - } -} - diff --git a/src/hooks/usePlaybackWebSocket.ts b/src/hooks/usePlaybackWebSocket.ts index 0048c58..00c1460 100644 --- a/src/hooks/usePlaybackWebSocket.ts +++ b/src/hooks/usePlaybackWebSocket.ts @@ -1,4 +1,3 @@ - import { message } from 'ant-design-vue'; import { type Ref, ref, type ShallowRef, shallowRef } from 'vue'; @@ -98,7 +97,7 @@ export function usePlaybackWebSocket(editorService: ShallowRef { + (msg.data as RobotRealtimeInfo[]).forEach((robot) => { latestRobotData.set(robot.id, robot); }); } @@ -134,7 +133,7 @@ export function usePlaybackWebSocket(editorService: ShallowRef