From 589f61931adc702054ab0a2b2a698f97be27c235 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sat, 30 Aug 2025 17:27:18 +0800 Subject: [PATCH] fix: cloudServiceClient api --- web/src/app/home/components/home-sidebar/HomeSidebar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index 4009c77a..b9489668 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -9,7 +9,8 @@ import { import { useRouter, usePathname } from 'next/navigation'; import { sidebarConfigList } from '@/app/home/components/home-sidebar/sidbarConfigList'; import langbotIcon from '@/app/assets/langbot-logo.webp'; -import { systemInfo, spaceClient } from '@/app/infra/http/HttpClient'; +import { systemInfo } from '@/app/infra/http/HttpClient'; +import { getCloudServiceClientSync } from '@/app/infra/http'; import { useTranslation } from 'react-i18next'; import { Moon, Sun, Monitor } from 'lucide-react'; import { useTheme } from 'next-themes'; @@ -54,7 +55,7 @@ export default function HomeSidebar({ localStorage.setItem('userEmail', 'test@example.com'); } - spaceClient + getCloudServiceClientSync() .get('/api/v1/dist/info/repo') .then((response) => { const data = response as { repo: { stargazers_count: number } };