fix: solve the problem of recursive call to logout api (#4265)

This commit is contained in:
Li Kui 2024-08-28 22:37:47 +08:00 committed by GitHub
parent 36e7ca19a1
commit 08acaf05f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 4 deletions

View File

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退 * 退
*/ */
export async function logoutApi() { export async function logoutApi() {
return requestClient.post('/auth/logout'); return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
} }
/** /**

View File

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退 * 退
*/ */
export async function logoutApi() { export async function logoutApi() {
return requestClient.post('/auth/logout'); return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
} }
/** /**

View File

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退 * 退
*/ */
export async function logoutApi() { export async function logoutApi() {
return requestClient.post('/auth/logout'); return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
} }
/** /**

View File

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退 * 退
*/ */
export async function logoutApi() { export async function logoutApi() {
return requestClient.post('/auth/logout'); return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
} }
/** /**