getAppNewVersion 返回版本号

getAppNewVersion ^8.5

返回版本号,有升级策略返回策略版本,没有返回当前版本。

#请求参数

N/A

#接口调用示例getAppNewVersion

this.$bridge
  .getAppNewVersion()
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回 Object res
Prop Type Value
code Number 0
newVerison String 如8.4.0.50
  • 失败时返回 Object res
Prop Type Value
code Number -1
msg String get new version failed
posted on 2024-12-19 09:27  AtlasLapetos  阅读(8)  评论(0)    收藏  举报