Skip to content

Commit 65d8ad5

Browse files
committed
fix: update logout url
1 parent ed67a7f commit 65d8ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/system/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export async function currentUser(options?: { [key: string]: any }) {
1010
}
1111

1212
export async function outLogin(options?: { [key: string]: any }) {
13-
return request<Record<string, any>>('/api/logout', {
14-
method: 'POST',
13+
return request<Record<string, any>>('/api/v1/logout', {
14+
method: 'DELETE',
1515
...(options || {}),
1616
});
1717
}

0 commit comments

Comments
 (0)