From d4e154a30bd6203be108332f86572ab5687c79e4 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 26 六月 2025 16:29:38 +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