From f7871d3b116735ba168fed58dcd5e0c05a348c40 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 27 六月 2025 09:30:53 +0800 Subject: [PATCH] feat: v2.2 --- 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