From e98688774f85426f5df2dcb2f4e9eeaac0f12fbc Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 20 十月 2025 16:28:09 +0800
Subject: [PATCH] fix: s
---
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