From 428839f8403028559c18c495dd872c21097172b9 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 27 六月 2025 10:58:59 +0800 Subject: [PATCH] Merge branch 'dev-2.2.0' of http://120.26.58.240:8888/r/JYBIndependentFront into dev-2.2.0 --- src/hooks/dic.ts | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/hooks/dic.ts b/src/hooks/dic.ts index 3b84750..ce60fd7 100644 --- a/src/hooks/dic.ts +++ b/src/hooks/dic.ts @@ -16,3 +16,19 @@ refetch, }; } + +export function useUserInsureProductSetting() { + const { data: allUserInsureProductSettingList, refetch } = useQuery({ + queryKey: ['dictionaryServices/getUserInsureProductSetting'], + queryFn: async () => { + let res = await dictionaryServices.getUserInsureProductSetting({ showLoading: false }); + return res; + }, + placeholderData: () => [] as API.InsureProductSettingDto[], + }); + + return { + allUserInsureProductSettingList, + refetch, + }; +} -- Gitblit v1.9.1