From ba52f84dac4284c4593c80d77595fd99664a7f7c Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 19 八月 2025 13:24:58 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- packages/hooks/enterprise.ts | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hooks/enterprise.ts b/packages/hooks/enterprise.ts index 3217a6b..308786e 100644 --- a/packages/hooks/enterprise.ts +++ b/packages/hooks/enterprise.ts @@ -1,5 +1,5 @@ import { useQuery, useQueryClient } from '@tanstack/vue-query'; -import * as enterpriseServices from '@12333/services/apiV2/enterprise'; +import * as taskServices from '@12333/services/apiV2/task'; import { MaybeRef, unref } from 'vue'; type UseEnterpriseDetailOptions = { @@ -8,16 +8,16 @@ export function useEnterpriseDetail({ id }: UseEnterpriseDetailOptions) { const { data, refetch, isLoading, isError } = useQuery({ - queryKey: ['enterpriseServices/getEnterprise', id], + queryKey: ['taskServices/getTaskEnterprise', id], queryFn: async () => { - return await enterpriseServices.getEnterprise( + return await taskServices.getTaskEnterprise( { id: unref(id) }, { showLoading: false, } ); }, - placeholderData: () => ({} as API.GetEnterpriseQueryResult), + placeholderData: () => ({} as API.GetTaskEnterpriseQueryResult), }); return { -- Gitblit v1.9.1