English
getUserInfo
About 78 wordsLess than 1 minute
2025-04-28
This method retrieves information about the currently logged-in user.
FxUI.organization.getUserInfo()Return Value
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| employeeId | Employee ID | string | -- | "" |
| employeeName | Employee name | string | -- | "" |
| enterpriseAccount | Enterprise EA | string | -- |
Code Example
This method returns user information, as shown below:
import FxUI from 'fxui-mobile';
FxUI.organization.getUserInfo().then((res) => {
// mock = {employeeId:'1000', employeeName: 'Zhang San', enterpriseAccount: 'fs'}
console.log('getUserInfo success callback', res)
}).catch((err) => {
console.log('getUserInfo failure callback', err)
})