dashboard
repositories
filestore
activity
search
login
yskj
/
iot_drone_web
无人机前端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Fix the issue that the data is not displayed when the map is not loaded.
sean.zhou
2023-03-14
b09ed762edb698bb12b11beb28ee7c2de76ceecc
[yskj/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