logout 退出登录

logout ^7.8

退出登录

#请求参数

N/A

#接口调用示例

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

#接口返回示例

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

// 失败返回
{
  code: -1,
  msg: '当前是未登录状态', // "退出失败"或者“当前是未登录状态”
}
posted on 2024-12-16 09:41  AtlasLapetos  阅读(10)  评论(0)    收藏  举报