# getCurrentViewTag

获取当前页面viewTag

# 请求参数

  • N/A

# 接口调用示例


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

# 返回参数

  • 成功时返回
Prop Type Default Description
viewTag String N/A 当前页面viewTag
  • 失败时返回
Prop Type Default Description
errorCode Number N/A 请求失败错误码:-1 获取失败获取失败

# 返回示例


{
  "code": 0,
  "msg": "success",
  "viewTag": "" 
}

1
2
3
4
5
6
7