实现登出

This commit is contained in:
2025-05-13 11:58:29 +08:00
parent 6990df3678
commit 1bc34688a1
3 changed files with 21 additions and 4 deletions

View File

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