# getAppNewVersion ^8.5

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

# 请求参数

N/A

# 接口调用示例getAppNewVersion



this.$bridge
  .getAppNewVersion()
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10

# 返回参数

  • 成功时返回 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
更新时间: 4/7/2022, 4:03:46 PM