zhengyiming
8 天以前 8f2468dc2a974040556fd0f49afb87df39401ff4
src/hooks/dic.ts
@@ -48,7 +48,7 @@
type UseDictionaryDataSelectOptions = {
  categoryId?: MaybeRef<string>;
  categoryCode?: MaybeRef<string>;
  categoryCode?: MaybeRef<CategoryCode>;
};
export function useDictionaryDataSelect({
@@ -56,7 +56,7 @@
  categoryCode,
}: UseDictionaryDataSelectOptions) {
  const { data: dictionaryDataList, refetch } = useQuery({
    queryKey: ['dictionaryServices/getDictionaryDataSelect'],
    queryKey: ['dictionaryServices/getDictionaryDataSelect', categoryId, categoryCode],
    queryFn: async () => {
      let res = await dictionaryServices.getDictionaryDataSelect(
        {
@@ -72,8 +72,6 @@
    },
    placeholderData: () =>
      [] as API.SelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption[],
    enabled: !!unref(categoryId) || !!unref(categoryCode),
  });
  function getDictionaryDataNameById(id: string) {