From 1a5fdab0bb6abb5d93d4af064514ffa89e226ea6 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 12 十二月 2025 20:19:09 +0800
Subject: [PATCH] release: @12333/bMiniApp v1.1.16
---
packages/hooks/insurance.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/packages/hooks/insurance.ts b/packages/hooks/insurance.ts
index 2e79455..7ad3fb0 100644
--- a/packages/hooks/insurance.ts
+++ b/packages/hooks/insurance.ts
@@ -4,12 +4,13 @@
type UseEnterpriseInsuranceProductSelectOptions = {
supplierEnterpriseId: MaybeRef<string>;
+ isConfiguredInsurance: MaybeRef<boolean>;
};
export function useEnterpriseInsuranceProductSelect(
options: UseEnterpriseInsuranceProductSelectOptions
) {
- const { supplierEnterpriseId } = options;
+ const { supplierEnterpriseId, isConfiguredInsurance } = options;
const queryClient = useQueryClient();
const { data: enterpriseInsuranceProductSelect } = useQuery({
@@ -27,7 +28,7 @@
},
placeholderData: () =>
[] as API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[],
- enabled: computed(() => !!unref(supplierEnterpriseId)),
+ enabled: computed(() => !!unref(supplierEnterpriseId) && unref(isConfiguredInsurance)),
});
return { enterpriseInsuranceProductSelect };
--
Gitblit v1.9.1