zhengyiming
2 天以前 92264a516c8c695c38d4cc9358c50bcfbed36f06
apps/cMiniApp/src/stores/modules/user.ts
@@ -33,6 +33,7 @@
  refreshToken?: Nullable<string>;
  userDetail?: Nullable<API.GetPersonalLoginInfoQueryResult>;
  firstGetUserDetail?: boolean;
  firstLaunch?: boolean;
  locationCity?: string;
  locationProvince?: string;
@@ -71,6 +72,7 @@
      refreshToken: userInfo?.refreshToken ?? '',
      userDetail: userDetail,
      firstGetUserDetail: true,
      firstLaunch: true,
      locationCity: storageLocation?.city ?? '北京市',
      locationProvince: storageLocation?.province ?? '北京',
      firstSetLocation: true,
@@ -136,7 +138,8 @@
      let res = await authServices.passwordLogin(
        {
          userName: params.userName,
          password: md5Encrypt(params.password),
          // password: md5Encrypt(params.password),
          password: params.password,
          type: AppLocalConfig.userType,
          clientType: AppLocalConfig.clientType,
        },
@@ -276,6 +279,10 @@
      // }
      LocationUtils.currentProvinceName = provinceName;
    },
    setFirstLaunch(firstLaunch: boolean) {
      this.firstLaunch = firstLaunch;
    },
  },
});