| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |  | import * as taskServices from '@/services/api/task'; |  |   |  | export function useTaskSelect() { |  |   const queryClient = useQueryClient(); |  |   |  |   const { data } = useQuery({ |  |     queryKey: ['taskServices/getTaskSelect'], |  |     queryFn: () => { |  |       return taskServices.getTaskSelect( |  |         {}, |  |         { |  |           showLoading: false, |  |         } |  |       ); |  |     }, |  |     placeholderData: () => [] as API.SelectOptionGuidGetTaskSelectQueryOption[], |  |   }); |  |   |  |   const taskSelect = computed(() => data.value?.map((x) => x.data)); |  |   |  |   return { taskSelect }; |  | } | 
 |