|
@@ -3,8 +3,13 @@
|
|
const {
|
|
const {
|
|
BtHelper
|
|
BtHelper
|
|
} = require('../../devices/bt_helper');
|
|
} = require('../../devices/bt_helper');
|
|
-const { deviceVersion } = require('../../request/deviceListRequest')
|
|
|
|
-import { EnumCmdEvent, CmdEvent } from '../../devices/cmd_key_event';
|
|
|
|
|
|
+const {
|
|
|
|
+ deviceVersion
|
|
|
|
+} = require('../../request/deviceListRequest')
|
|
|
|
+import {
|
|
|
|
+ EnumCmdEvent,
|
|
|
|
+ CmdEvent
|
|
|
|
+} from '../../devices/cmd_key_event';
|
|
import EventManager from '../../utils/event_bus'
|
|
import EventManager from '../../utils/event_bus'
|
|
import route_util from '../../utils/route_util';
|
|
import route_util from '../../utils/route_util';
|
|
|
|
|
|
@@ -85,7 +90,8 @@ Page({
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
// let device = JSON.parse(options.param);
|
|
// let device = JSON.parse(options.param);
|
|
console.log(getApp().globalData.mDeviceList.length)
|
|
console.log(getApp().globalData.mDeviceList.length)
|
|
- let device = getApp().globalData.mDeviceList[0] ?? JSON.parse(options.param);
|
|
|
|
|
|
+ let device = JSON.parse(options.param);
|
|
|
|
+ // let device = getApp().globalData.mDeviceList[0] ?? JSON.parse(options.param);
|
|
if (device.connectType != '1') {
|
|
if (device.connectType != '1') {
|
|
return
|
|
return
|
|
}
|
|
}
|