# logout ^7.8

退出登录

# 请求参数

N/A

# 接口调用示例

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

# 接口返回示例

// 退出成功,退出当前页面
{
  code: 0,
  msg:"退出成功"
}

// 失败返回
{
  code: -1,
  msg: '当前是未登录状态', // "退出失败"或者“当前是未登录状态”
}
1
2
3
4
5
6
7
8
9
10
11
更新时间: 8/5/2022, 5:24:56 PM