mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-02 02:13:52 +00:00
feat : 调整适配部署阿里云效-004
This commit is contained in:
parent
6294b0a4ca
commit
706e077f87
2 changed files with 2 additions and 2 deletions
|
|
@ -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(),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue