From 2d852d43dd39b4249a866e2e7a3343a9e4db2327 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Wed, 10 Sep 2025 18:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E9=83=A8=E5=A7=BF?= =?UTF-8?q?=E6=80=81=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/src/views/Detection.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/renderer/src/views/Detection.vue b/frontend/src/renderer/src/views/Detection.vue index 7740bd10..18928472 100644 --- a/frontend/src/renderer/src/views/Detection.vue +++ b/frontend/src/renderer/src/views/Detection.vue @@ -1235,9 +1235,7 @@ const isTrackingMaxValues = ref(false) function handleIMUData(data) { try { if (!data) return - headlist.value.rotation = data.rotation // 旋转角度 - headlist.value.tilt = data.tilt // 倾斜角度 - headlist.value.pitch = data.pitch // 俯仰角度 + // 兼容两种载荷结构: // 1) { rotation, tilt, pitch } // 2) { head_pose: { rotation, tilt, pitch } } @@ -1248,7 +1246,9 @@ function handleIMUData(data) { if (rotation === undefined || tilt === undefined || pitch === undefined) { return } - + headlist.value.rotation = rotation // 旋转角度 + headlist.value.tilt = tilt // 倾斜角度 + headlist.value.pitch = pitch // 俯仰角度 const now = (typeof performance !== 'undefined' && performance.now) ? performance.now() : Date.now() // 若距离上次更新时间很短且变化不明显,则跳过避免频繁DOM更新 @@ -2480,7 +2480,7 @@ function routerClick(){ .gauge-group-box-text2 { font-size: 24px; - color: #ff9900; + color: #30F3FF; font-weight: 700; }