From 27652573ea8a58d5593791e27b4d326f84187093 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 12 十二月 2025 21:37:30 +0800
Subject: [PATCH] fix: bug
---
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