# getLoginInfo ^7.8

获取身份信息、token 等

# 请求参数

N/A

# 接口调用示例

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

# 返回参数

Prop Type Comment
isLogin Number 登录状态: 0-未登录,1-已登录
token String 认证 token(如果已经登录)

# 接口返回示例

{
  isLogin: 0,
  token: "dflskjdf23849723skdjflj"
}
1
2
3
4
更新时间: 8/5/2022, 5:24:56 PM