zhengyiming
2025-06-11 91f00f1df35a964d69f48b9f71b484e2d4ef357e
packages/components/src/views/Mine/Dashboard.vue
@@ -29,7 +29,7 @@
        <DashboardItem
          title="累计收益"
          :icon="IconDashboard5"
          :value="toThousand(topStatistics?.accumulatedIncome ?? 0)"
          :value="toThousand(topStatistics?.accumulatedChannlesRakePrice ?? 0)"
          need-symbol
        />
        <DashboardItem
@@ -80,7 +80,10 @@
const { blLifeRecharge } = useLifeRechargeContext();
const { data: topStatistics } = useQuery({
  queryKey: ['lifePayServices/getTopStatistics', blLifeRecharge.accountModel.userChannles],
  queryKey: [
    'lifePayServices/getTopStatistics',
    computed(() => blLifeRecharge.accountModel.userChannles),
  ],
  queryFn: async () => {
    return await blLifeRecharge.services.getTopStatistics(
      {
@@ -92,6 +95,10 @@
    );
  },
  placeholderData: () => ({} as TopStatisticsOutput),
  enabled: computed(() => blLifeRecharge.accountModel.isBackClientUser),
  enabled: computed(() => {
    return (
      !!blLifeRecharge.accountModel.isBackClientUser && blLifeRecharge.accountModel.isGetUserInfo
    );
  }),
});
</script>