重构实时监控界面 ,选择机器 弹出抽屉下发任务,支持筛选根据无人机和机器人分别显示 抽屉内容, 加了 mqtt断联机器ws,还未测试,基本架构完成
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user