From eaf9c983b41f2c1fe682526eab131999f84fb8fe Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 15:47:35 +0800
Subject: [PATCH] feat: 页面
---
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