zhengyiming
3 天以前 d042bb3c5679375956c7616e6b1afe681fb82d9b
packages/hooks/dic.ts
@@ -57,6 +57,7 @@
  /** 查询所有 */
  all?: MaybeRef<boolean>;
  maxDeep?: number;
  field1?: MaybeRef<string>;
};
export function useDictionaryDataSelect({
@@ -67,6 +68,7 @@
  keywords,
  all,
  maxDeep,
  field1,
}: UseDictionaryDataSelectOptions) {
  const params = computed(() => ({
    categoryId: unref(categoryId),
@@ -75,6 +77,7 @@
    keywords: unref(keywords),
    all: unref(all),
    maxDeep: maxDeep,
    field1: unref(field1),
  }));
  const { data: dictionaryDataList, refetch } = useQuery({
    queryKey: ['dictionaryServices/getDictionaryDataSelect', params],