|
@@ -1,6 +1,6 @@
|
|
|
const { BtHelper } = require("../../devices/bt_helper");
|
|
|
import { EnumCmdEvent, CmdEvent } from '../../devices/cmd_key_event';
|
|
|
-import EventManager from '../../utils/event_bus'
|
|
|
+import eventBus from '../../utils/eventBus'
|
|
|
import routeUtil from '../../utils/routeUtil';
|
|
|
import routePath from '../../utils/routePath.js';
|
|
|
import { BtCmd } from '../../devices/bluetooth/bt_cmd.js';
|
|
@@ -402,7 +402,7 @@ Page({
|
|
|
},
|
|
|
addNotification() {
|
|
|
let _this = this;
|
|
|
- EventManager.addNotification(CmdEvent.eventName, function (event) {
|
|
|
+ eventBus.addNotification(CmdEvent.eventName, function (event) {
|
|
|
let name = event.cmdEvent;
|
|
|
let kind = event.heiJiaoKind;
|
|
|
// 74,1,1是wifi连接成功,74,0 2连接wifi失败/没有wifi。
|
|
@@ -517,7 +517,7 @@ Page({
|
|
|
},
|
|
|
onUnload() {
|
|
|
console.log("移除OTA通知")
|
|
|
- EventManager.removeNotification(CmdEvent.eventName, this)
|
|
|
+ eventBus.removeNotification(CmdEvent.eventName, this)
|
|
|
},
|
|
|
|
|
|
})
|