From bd20a385dd86cf32735578c4c140a0aebf758e45 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 15 五月 2025 17:15:07 +0800
Subject: [PATCH] fix: bug

---
 src/hooks/dic.ts |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/hooks/dic.ts b/src/hooks/dic.ts
index 3051991..b078ba9 100644
--- a/src/hooks/dic.ts
+++ b/src/hooks/dic.ts
@@ -11,6 +11,8 @@
    */
   isSelf?: boolean;
   onSuccess?: (data: API.GetTypeSearchSettingList[]) => any;
+  /**涓嶄紶鏌ュ叏閮紝true鏌ユ樉绀虹殑 */
+  status?: boolean;
 };
 
 export function useSearchSettingType({
@@ -18,17 +20,19 @@
   belongType = null,
   onSuccess,
   isSelf,
+  status = true,
 }: UseSearchSettingTypeOptions) {
   const { data, refetch } = useQuery({
     queryKey: [
       'searchSettingServices/getTypeSearchSettingList',
-      { searchType, belongType, isSelf },
+      { searchType, belongType, isSelf, status },
     ],
     queryFn: async () => {
       return await searchSettingServices.getTypeSearchSettingList(
         {
           searchType: searchType,
           belongType: belongType,
+          status,
         },
         { showLoading: false }
       );
@@ -45,7 +49,7 @@
     return await queryClient.ensureQueryData({
       queryKey: [
         'searchSettingServices/getTypeSearchSettingList',
-        { searchType: searchType, belongType: belongType },
+        { searchType: searchType, belongType: belongType, status },
       ],
     });
   }

--
Gitblit v1.9.1