dashboard
repositories
filestore
activity
search
login
~husq
/
iot_drone_web
forked from
yskj/iot_drone_web
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
update device-firmware.ts
sean.zhou
2022-12-12
20e5f4cd989fbe345d949c96f73009901fdfd041
[~husq/iot_drone_web.git]
/
src
/
event-bus
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
import mitt, { Emitter } from 'mitt'
type Events = {
deviceUpgrade: any; // 设备升级
deviceLogUploadProgress: any // 设备日志上传
flightTaskWs: any // 机场任务消息
};
const emitter: Emitter<Events> = mitt<Events>()
export default emitter