wupengfei
2025-02-25 e53e33dd46fdf138c851b10f12cdc00131a8d644
packages/components/src/hooks/index.ts
@@ -6,6 +6,7 @@
  QueryLifePayOrderListInput,
  LifeRechargeConstants,
  ElectricParValueResponse,
  ElectricSupportAreaResponse,
} from '@life-payment/core-vue';
import { useQuery } from '@tanstack/vue-query';
import { computed, MaybeRef, reactive, unref } from 'vue';
@@ -67,14 +68,14 @@
  const { blLifeRecharge } = useLifeRechargeContext();
  const { data: electricParValueList, isLoading } = useQuery({
    queryKey: ['blLifeRecharge/getElectricParValue'],
    queryKey: ['blLifeRecharge/getElectricSupportArea'],
    queryFn: async () => {
      return await blLifeRecharge.services.getElectricParValue({ showLoading: false });
      return await blLifeRecharge.services.getElectricSupportArea({ showLoading: false });
    },
    select(data) {
      return data.electricParValue ?? [];
      return data.electricAreaList ?? [];
    },
    placeholderData: () => ({} as ElectricParValueResponse),
    placeholderData: () => ({} as ElectricSupportAreaResponse),
  });
  return {