forked from drone/command-center-dashboard

罗广辉
2025-04-21 307e875f7b5c2899b9dc398ac3933114aa9bd572
src/views/SignMachineNest/MachineRight/MachineMonitor.vue
@@ -48,7 +48,7 @@
const isTakeOff = ref(false)
// 监听ws消息
watch(device_osd_host, async () => {
      if (!device_osd_host.value.mode_code) return
      if (device_osd_host?.value?.mode_code === undefined) return
     const currentIsTakeOff = ![14, 0].includes(device_osd_host.value?.mode_code)
      // 如果还是之前的状态,不切换
      if (isTakeOff.value === currentIsTakeOff) return