feat : 调整适配部署阿里云效-004

This commit is contained in:
翟二远 2026-04-08 15:26:44 +08:00
parent 6294b0a4ca
commit 706e077f87
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ export const authApi = {
},
async logout(): Promise<void> {
const response = await fetch('/api/v1/auth/logout', {
const response = await fetch(withBaseUrl('/api/v1/auth/logout'), {
method: 'POST',
headers: withCsrf(),
})

View file

@ -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'
}
}