| | |
| | | return insureProduct?.id ?? ''; |
| | | } |
| | | |
| | | const queryClient = useQueryClient(); |
| | | |
| | | function ensureUserInsureProductSetting() { |
| | | return queryClient.ensureQueryData<API.InsureProductSettingDto[]>({ |
| | | queryKey: ['dictionaryServices/getUserInsureProductSetting'], |
| | | }); |
| | | } |
| | | |
| | | /**是否是生煎保账号 */ |
| | | const isSjbAccount = computed(() => allUserInsureProductSettingList.value.length > 0); |
| | | |
| | | return { |
| | | allUserInsureProductSettingList, |
| | | getInsureProductByIdNumber, |
| | | getInsureProductIdByIdNumber, |
| | | refetch, |
| | | ensureUserInsureProductSetting, |
| | | isSjbAccount, |
| | | }; |
| | | } |
| | | |