| | |
| | | userInfo?: Nullable<API.LoginCommandCallback>; |
| | | token?: Nullable<string>; |
| | | refreshToken?: Nullable<string>; |
| | | userDetail?: Nullable<API.GetPersonalLoginInfoQueryResult>; |
| | | userDetail?: Nullable<API.GetEnterpriseLoginInfoQueryResult>; |
| | | firstGetUserDetail?: boolean; |
| | | firstLaunch?: boolean; |
| | | |
| | |
| | | password: params.password, |
| | | type: AppLocalConfig.userType, |
| | | clientType: AppLocalConfig.clientType, |
| | | enterpriseType: AppLocalConfig.enterpriseType, |
| | | }, |
| | | { showLoading: false } |
| | | ); |
| | |
| | | |
| | | async getCurrentUserInfo() { |
| | | try { |
| | | let res = await authServices.getPersonalLoginInfo({}, { showLoading: false }); |
| | | let res = await authServices.getEnterpriseLoginInfo({}, { showLoading: false }); |
| | | if (res) { |
| | | // res.frontStatus = getUserCertificationFrontStatusAdapter( |
| | | // res.userCertificationStatus, |
| | |
| | | setUserInfo(this.userInfo); |
| | | }, |
| | | |
| | | setUserDetail(detail: API.GetPersonalLoginInfoQueryResult) { |
| | | setUserDetail(detail: API.GetEnterpriseLoginInfoQueryResult) { |
| | | this.userDetail = detail; |
| | | setUserDetail(detail); |
| | | }, |