From aea48239f9238e694eda18097e668635fe4dddb9 Mon Sep 17 00:00:00 2001 From: musistudio Date: Wed, 30 Jul 2025 20:31:14 +0800 Subject: [PATCH] fix ui fetch failed --- ui/src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/lib/api.ts b/ui/src/lib/api.ts index a93b886..71a2406 100644 --- a/ui/src/lib/api.ts +++ b/ui/src/lib/api.ts @@ -5,7 +5,7 @@ class ApiClient { private baseUrl: string; private apiKey: string; - constructor(baseUrl: string = 'http://127.0.0.1:3456/api', apiKey: string = '') { + constructor(baseUrl: string = '/api', apiKey: string = '') { this.baseUrl = baseUrl; // Load API key from localStorage if available this.apiKey = apiKey || localStorage.getItem('apiKey') || '';