重构实时监控界面 ,选择机器 弹出抽屉下发任务,支持筛选根据无人机和机器人分别显示 抽屉内容, 加了 mqtt断联机器ws,还未测试,基本架构完成

This commit is contained in:
mmc
2026-09-09 14:51:33 +08:00
parent 02e29b25d1
commit c1792670cb
6 changed files with 1409 additions and 191 deletions

View File

@@ -67,6 +67,16 @@ export default class DeviceController {
wsManager.close();
}
disconnect() {
console.log('DeviceController disconnect: 断开 WebSocket');
wsManager.close();
this.connectedDeviceSn = null;
this.currentDevice = null;
this.wsDeviceInfo = {};
this.locationInfo = {};
this.isControlled = false;
this.onControlStatusChange?.(false);
}
handleVisibilityChange() {
if (document.visibilityState === 'hidden') {