wupengfei
4 天以前 87acc2d3c66a56bc0e01f44c054bdb0aa3546aa2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import * as electronSignServices from '@/services/api/electronSign';
 
export function useEnterpriseContractTemplateSelect() {
  const queryClient = useQueryClient();
 
  const { data: enterpriseContractTemplateSelect } = useQuery({
    queryKey: ['electronSignServices/getEnterpriseContractTemplateSelect'],
    queryFn: () => {
      return electronSignServices.getEnterpriseContractTemplateSelect(
        {},
        {
          showLoading: false,
        }
      );
    },
    placeholderData: () =>
      [] as API.SelectOptionGuidGetEnterpriseContractTemplateSelectQueryOption[],
  });
 
  return { enterpriseContractTemplateSelect };
}