实现登出

This commit is contained in:
2025-05-13 11:58:29 +08:00
parent c6cc3a7098
commit 7a612f8480
3 changed files with 21 additions and 4 deletions

View File

@@ -1 +1,2 @@
export * from './login';
export * from './login';
export * from './logout';

View File

@@ -0,0 +1,5 @@
import fetcher from "../fetcher";
export async function logout() {
return fetcher('/api/auth/logout', { method: 'POST' });
}