1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| import * as dictionaryServices from '@/services/api/Dictionary';
| import { useQuery, useQueryClient } from '@tanstack/vue-query';
|
| export function useInsureProductSettingAllList() {
| const { data: allInsureProductSettingList, refetch } = useQuery({
| queryKey: ['dictionaryServices/getInsureProductSettingAllList'],
| queryFn: async () => {
| let res = await dictionaryServices.getInsureProductSettingAllList({}, { showLoading: false });
| return res;
| },
| placeholderData: () => [] as API.InsureProductSettingDto[],
| });
|
| return {
| allInsureProductSettingList,
| refetch,
| };
| }
|
|