From f35680f356168af8d4a3d5f34456e561af40fbba Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 24 十二月 2025 13:15:10 +0800
Subject: [PATCH] feat: 接口
---
src/hooks/dic.ts | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/hooks/dic.ts b/src/hooks/dic.ts
index 06171e5..dc95df6 100644
--- a/src/hooks/dic.ts
+++ b/src/hooks/dic.ts
@@ -64,6 +64,7 @@
/** 鏌ヨ鎵�鏈� */
all?: MaybeRef<boolean>;
maxDeep?: number;
+ field1?: MaybeRef<string>;
};
export function useDictionaryDataSelect({
@@ -74,6 +75,7 @@
keywords,
all,
maxDeep,
+ field1,
}: UseDictionaryDataSelectOptions) {
const params = computed(() => ({
categoryId: unref(categoryId),
@@ -82,10 +84,14 @@
keywords: unref(keywords),
all: unref(all),
maxDeep: maxDeep,
+ field1: unref(field1),
}));
const { data: dictionaryDataList, refetch } = useQuery({
queryKey: ['dictionaryServices/getDictionaryDataSelect', params],
queryFn: async () => {
+ // if (unref(field1)) {
+ // params.value.field1 = unref(field1);
+ // }
let res = await dictionaryServices.getDictionaryDataSelect(params.value, {
showLoading: false,
});
--
Gitblit v1.10.0