|
@ -114,15 +114,15 @@ const initData = async () => { |
|
|
* @function 初始化设备信息 |
|
|
* @function 初始化设备信息 |
|
|
* @desc 从服务端获取设备信息并更新到状态存储 |
|
|
* @desc 从服务端获取设备信息并更新到状态存储 |
|
|
*/ |
|
|
*/ |
|
|
const initDeviceInfo = async () => { |
|
|
|
|
|
const deviceParams = { |
|
|
|
|
|
className: 'DeviceInfoMgrService', |
|
|
|
|
|
fnName: 'getDeviceInfo', |
|
|
|
|
|
} |
|
|
|
|
|
const res = await sendCmd(deviceParams) |
|
|
|
|
|
deviceStore.updateDeviceInfo(res) |
|
|
|
|
|
return res |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// const initDeviceInfo = async () => { |
|
|
|
|
|
// const deviceParams = { |
|
|
|
|
|
// className: 'DeviceInfoMgrService', |
|
|
|
|
|
// fnName: 'getDeviceInfo', |
|
|
|
|
|
// } |
|
|
|
|
|
// const res = await sendCmd(deviceParams) |
|
|
|
|
|
// deviceStore.updateDeviceInfo(res) |
|
|
|
|
|
// return res |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @function 初始化 |
|
|
* @function 初始化 |
|
|