refactor(use-common): simplify current workspace query function by removing unnecessary body parameter

This commit is contained in:
twwu 2025-12-29 13:37:33 +08:00
parent 68615eec04
commit d308c34842
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@ export const useLangGeniusVersion = (currentVersion?: string | null, enabled?: b
export const useCurrentWorkspace = () => {
return useQuery<ICurrentWorkspace>({
queryKey: commonQueryKeys.currentWorkspace,
// queryFn: () => post<ICurrentWorkspace>('/workspaces/current', { body: {} }),
queryFn: () => post<ICurrentWorkspace>('/workspaces/current'),
})
}