From 706e077f8715c4582c7012ec50b6ac395f68b577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E4=BA=8C=E8=BF=9C?= Date: Wed, 8 Apr 2026 15:26:44 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=B0=83=E6=95=B4=E9=80=82=E9=85=8D?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=98=BF=E9=87=8C=E4=BA=91=E6=95=88-004?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/client.ts | 2 +- web/src/shared/components/user-menu.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/api/client.ts b/web/src/api/client.ts index 19539f2d..bdda0e5f 100644 --- a/web/src/api/client.ts +++ b/web/src/api/client.ts @@ -346,7 +346,7 @@ export const authApi = { }, async logout(): Promise { - const response = await fetch('/api/v1/auth/logout', { + const response = await fetch(withBaseUrl('/api/v1/auth/logout'), { method: 'POST', headers: withCsrf(), }) diff --git a/web/src/shared/components/user-menu.tsx b/web/src/shared/components/user-menu.tsx index d1a9cec0..715b4b21 100644 --- a/web/src/shared/components/user-menu.tsx +++ b/web/src/shared/components/user-menu.tsx @@ -78,7 +78,7 @@ export function UserMenu({ user, triggerClassName }: UserMenuProps) { // Always clear cache and redirect, even if API call fails clearSessionScopedQueries(queryClient) queryClient.setQueryData(['auth', 'me'], null) - window.location.href = '/' + window.location.href = '/skillhub-web/index.html' } }