getUserInfo
FxUI.organization.getUserInfo()
# 功能描述
该方法可以获取当前登录用户的相关信息
# 返回结果
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
employeeId | 人员id | string | -- | "" |
employeeName | 对象数据的key | string | -- | "" |
enterpriseAccount | 企业ea | string | -- |
# 代码示例
该方法返回人员信息,示例如下:
import FxUI from 'fxui-mobile';
FxUI.organization.getUserInfo().then((res) => {
//mock = {employeeId:'1000',employeeName: '张三',enterpriseAccount: 'fs'}
console.log('getUserInfo 成功回调', res)
}).catch((err) => {
console.log('getUserInfo 失败回调', err)
})