zhengyiming
4 天以前 e75076815db5ab6870353d0760b962b671e7c56f
apps/housekeepingMiniApp/src/stores/modules/user.ts
@@ -31,7 +31,7 @@
  userInfo?: Nullable<API.LoginCommandCallback>;
  token?: Nullable<string>;
  refreshToken?: Nullable<string>;
  userDetail?: Nullable<API.GetPersonalLoginInfoQueryResult>;
  userDetail?: Nullable<API.GetEnterpriseLoginInfoQueryResult>;
  firstGetUserDetail?: boolean;
  firstLaunch?: boolean;
@@ -142,6 +142,7 @@
          password: params.password,
          type: AppLocalConfig.userType,
          clientType: AppLocalConfig.clientType,
          enterpriseType: AppLocalConfig.enterpriseType,
        },
        { showLoading: false }
      );
@@ -192,7 +193,7 @@
    async getCurrentUserInfo() {
      try {
        let res = await authServices.getPersonalLoginInfo({}, { showLoading: false });
        let res = await authServices.getEnterpriseLoginInfo({}, { showLoading: false });
        if (res) {
          // res.frontStatus = getUserCertificationFrontStatusAdapter(
          //   res.userCertificationStatus,
@@ -219,7 +220,7 @@
      setUserInfo(this.userInfo);
    },
    setUserDetail(detail: API.GetPersonalLoginInfoQueryResult) {
    setUserDetail(detail: API.GetEnterpriseLoginInfoQueryResult) {
      this.userDetail = detail;
      setUserDetail(detail);
    },