From b7db343ba7d7b7133f514b8c5acbc2979e23213c Mon Sep 17 00:00:00 2001 From: xudan Date: Mon, 13 Oct 2025 10:58:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=9E=E6=94=BE?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=9C=BA=E5=99=A8=E4=BA=BA=E7=AC=94?= =?UTF-8?q?=E7=9A=84=E5=8F=AF=E8=A7=81=E6=80=A7=E5=92=8C=E8=A7=A3=E9=94=81?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=AE=BE=E7=BD=AE=EF=BC=8C=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E8=83=BD=E5=A4=9F=E6=AD=A3=E7=A1=AE=E8=81=9A=E7=84=A6=E5=88=B0?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E6=9C=BA=E5=99=A8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/movement-supervision.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/pages/movement-supervision.vue b/src/pages/movement-supervision.vue index 3f973c6..24a543f 100644 --- a/src/pages/movement-supervision.vue +++ b/src/pages/movement-supervision.vue @@ -476,6 +476,20 @@ const isArea = computed(() => current.value?.type === 'area'); const selectRobot = (id: string) => { current.value = { type: 'robot', id }; editor.value?.inactive(); + + // [FIX] In playback mode, robot pens might not be correctly set as visible or unlocked. + // This ensures that gotoById can focus on the robot. + if (isPlaybackMode.value) { + editor.value?.setValue( + { + id, + visible: true, + locked: LockState.None, + }, + { render: false, history: false }, + ); + } + // 聚焦到机器人位置 editor.value?.gotoById(id); };