Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 08acaf05
authored
Aug 28, 2024
by
Li Kui
Committed by
GitHub
Aug 28, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: solve the problem of recursive call to logout api (#4265)
1 parent
36e7ca19
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
apps/web-antd/src/api/core/auth.ts
apps/web-ele/src/api/core/auth.ts
apps/web-naive/src/api/core/auth.ts
playground/src/api/core/auth.ts
apps/web-antd/src/api/core/auth.ts
View file @
08acaf0
...
@@ -42,7 +42,9 @@ export async function refreshTokenApi() {
...
@@ -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
,
});
}
}
/**
/**
...
...
apps/web-ele/src/api/core/auth.ts
View file @
08acaf0
...
@@ -42,7 +42,9 @@ export async function refreshTokenApi() {
...
@@ -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
,
});
}
}
/**
/**
...
...
apps/web-naive/src/api/core/auth.ts
View file @
08acaf0
...
@@ -42,7 +42,9 @@ export async function refreshTokenApi() {
...
@@ -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
,
});
}
}
/**
/**
...
...
playground/src/api/core/auth.ts
View file @
08acaf0
...
@@ -42,7 +42,9 @@ export async function refreshTokenApi() {
...
@@ -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
,
});
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment