Просмотр исходного кода

mod: 相机连接失败 调整

panqiuyao 8 месяцев назад
Родитель
Сommit
2367fa8a11
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      frontend/src/stores/modules/check.ts

+ 5 - 0
frontend/src/stores/modules/check.ts

@@ -183,6 +183,11 @@ export const checkInfo = defineStore('checkInfo', () => {
                     devices.blue_tooth.status = -1;
                     devices.blue_tooth.status = -1;
                     devices.blue_tooth.msg = '遥控器未连接。';
                     devices.blue_tooth.msg = '遥控器未连接。';
                 }
                 }
+                if( devices.mcu.status !== 2 || mcu.status !== 2 ){
+                    devices.mcu.status = -1;
+                    mcu.status = -1;
+                    devices.blue_tooth.msg = '拍照机链接失败';
+                }
             }
             }
         },1000)
         },1000)
         await checkAction();
         await checkAction();