guoshilong
2023-10-18 53bcb7e5dffa071d2c6593f5db7f0b6e4e2f8dfe
src/event-bus/index.ts
@@ -1,10 +1,12 @@
import mitt, { Emitter } from 'mitt'
type Events = {
  deviceUpgrade: any;
  deviceLogUploadProgress: any
  deviceUpgrade: any; // 设备升级
  deviceLogUploadProgress: any // 设备日志上传
  flightTaskWs: any // 机场任务消息
  droneControlWs: any // 飞行指令信息
  droneControlMqttInfo: any // drc 链路通知
};
const emitter: Emitter<Events> = mitt<Events>()
export default emitter