# checkDeviceUpdate

获取设备更新状态 OTA红点逻辑

# 调用方式

checkDeviceUpdate()
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

无。

# 接口调用示例

this.$bridge.checkDeviceUpdate()
1

# 返回参数

Prop Type Default Description
needUpdate String 更新状态

# 接口返回示例

this.$bridge.checkDeviceUpdate().then(data => {
  if (Number(data.needUpdate) === 0) {
    this.deviceShow = false;
  } else {
    this.deviceShow = true;
  }
})
1
2
3
4
5
6
7