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; }