- 在 camera.js 中增加相机未连接时的返回信息 - 在 check.ts 中添加相机未连接时的状态更新 - 优化了相机连接检查的逻辑,提高了系统稳定性
@@ -65,6 +65,12 @@ class CameraController extends Controller {
}
+ return {
+ status:-1,
+ msg:"相机未连接,请链接相机。",
+ }
+
@@ -122,6 +122,11 @@ export const checkInfo = defineStore('checkInfo', () => {
devices.cam_control.msg = result.msg;
+ if(!result && checkTime.value > 0){
+ devices.cam_control.status = -1;
+ devices.cam_control.msg = '相机未连接,请链接相机。';
});