From ddddcf83e7deb9d0a674d2bbead300089530d87e Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 21 五月 2025 13:24:07 +0800
Subject: [PATCH] feat: UI

---
 apps/taro/src/hooks/lifepay.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/apps/taro/src/hooks/lifepay.ts b/apps/taro/src/hooks/lifepay.ts
index 574a36c..28090cd 100644
--- a/apps/taro/src/hooks/lifepay.ts
+++ b/apps/taro/src/hooks/lifepay.ts
@@ -1,5 +1,6 @@
 import { useQuery } from '@tanstack/vue-query';
 import { useLifeRechargeContext, CreateEditPayChannelsInput } from '@life-payment/core-vue';
+import { MaybeRef } from 'vue';
 
 export function useOnlineService() {
   const { blLifeRecharge } = useLifeRechargeContext();
@@ -20,11 +21,12 @@
 }
 
 type UseLifePayChannlesAllListOptions = {
+  params?: MaybeRef<API.QueryLifePayChannlesInput>;
   onSuccess?: (data: API.CreateEditPayChannelsInput[]) => any;
 };
 
 export function useLifePayChannlesAllList(options: UseLifePayChannlesAllListOptions = {}) {
-  const { onSuccess } = options;
+  const { onSuccess, params = {} } = options;
 
   const { blLifeRecharge } = useLifeRechargeContext();
 
@@ -33,9 +35,9 @@
     isLoading,
     refetch,
   } = useQuery({
-    queryKey: ['blLifeRecharge/getLifePayChannlesAllList'],
+    queryKey: ['blLifeRecharge/getLifePayChannlesAllList', params],
     queryFn: async () => {
-      return await blLifeRecharge.services.getLifePayChannlesAllList({
+      return await blLifeRecharge.services.getLifePayChannlesAllList(unref(params), {
         showLoading: false,
       });
     },

--
Gitblit v1.9.1